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))
Source by how.wtf #
PREVIOUS
NEXT
Tagged:
#create
#dict
#lists
ADD COMMENT
Topic
COMMENT
Name
9+2 =
Submit