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))
 
PREVIOUS NEXT
Tagged: #create #dict #lists
ADD COMMENT
Topic
Name
9+9 =