DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python loop through dictionary
new_list
=
[
something
(
key
,
value
)
for
key
,
value
in
a_dict
.
items
(
)
]
PREVIOUS
NEXT
Tagged:
#python
#loop
#dictionary
ADD COMMENT
Topic
COMMENT
Name
6+1 =
Submit