Answers for "py3 dict values"

0

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())
Posted by: Guest on August-24-2020

Python Answers by Framework

Browse Popular Code Answers by Language