python3 dict all values code example
Example: py3 dict values
Yes it's the exact same thing in Python 2:
d.values()
In Python 3 (where dict.values returns a view of the dictionary’s values instead):
list(d.values())
Yes it's the exact same thing in Python 2:
d.values()
In Python 3 (where dict.values returns a view of the dictionary’s values instead):
list(d.values())