# app.py
stocks = ['reliance', 'infosys', 'tcs']
prices = [2175, 1127, 2750]
dictionary = dict(zip(stocks, prices))
print(dictionary)
# convert 2 lists into a dictionary, use zip()
aa = [1, 2, 3]
bb = ["a", "b", "c"]
print(dict(zip(aa, bb)))
# {1: 'a', 2: 'b', 3: 'c'}
cast_names = ["Barney", "Robin", "Ted", "Lily", "Marshall"]
cast_heights = [72, 68, 72, 66, 76]
cast = dict(zip(cast_names, cast_heights))
print(cast)
#The order of elements in this output may vary since dictionaries are unordered
>>>{'Lily': 66, 'Barney': 72, 'Marshall': 76, 'Ted': 72, 'Robin': 68}