DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
create dict from two lists
keys = ['a', 'b', 'c'] values = [1, 2, 3] dictionary = dict(zip(keys, values))
PREVIOUS
NEXT
Tagged:
#create
#dict
#lists
ADD COMMENT
Topic
COMMENT
Name
9+9 =
Submit