How can I get list of values from dict?
How can I get a list of the values in a dict in Python?
In Java, getting the values of a Map as a List is as easy as doing
list = map.values();. I'm wondering if there is a similarly simple way in Python to get a list of values from a dict.
Yes it's the exact same thing in Python 2:
★ Back to homepage or read more recommendations: