Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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())
 
PREVIOUS NEXT
Tagged: #dict #values
ADD COMMENT
Topic
Name
3+1 =