extract specific key values from nested dictionary

37

>>> [val.get('phone') for val in people.values()]
['4563', '9102', '2341']

Comments

Submit
0 Comments