Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python zip lists into dictionary

# app.py

stocks = ['reliance', 'infosys', 'tcs']
prices = [2175, 1127, 2750]
dictionary = dict(zip(stocks, prices))
print(dictionary)
Source by appdividend.com #
 
PREVIOUS NEXT
Tagged: #python #zip #lists #dictionary
ADD COMMENT
Topic
Name
1+6 =