Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python two list into dictinaray

index = [1, 2, 3]
languages = ['python', 'c', 'c++']

dictionary = dict(zip(index, languages))
print(dictionary)
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #list #dictinaray
ADD COMMENT
Topic
Name
9+7 =