DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
extract specific key values from nested dictionary
>>
>
[
val
.
get
(
'phone'
)
for
val
in
people
.
values
(
)
]
[
'4563'
,
'9102'
,
'2341'
]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#extract
#specific
#key
#values
#nested
#dictionary
ADD COMMENT
Topic
COMMENT
Name
9+6 =
Submit