Search
 
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
Name
9+2 =