programming-examples/python/Dictionary/Python program to map two lists into a dictionary.py

4 lines
151 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
keys = ['red', 'green', 'blue']
values = ['#FF0000','#008000', '#0000FF']
color_dictionary = dict(zip(keys, values))
print(color_dictionary)