Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

extract specific key values from nested dictionary

l = []
for person in people:
    l.append(people[person]['phone'])

>>> l
['9102', '2341', '4563']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #extract #specific #key #values #nested #dictionary
ADD COMMENT
Topic
Name
2+6 =