programming-examples/python/Dictionary/Python program to map two lists into a dictionary.py
2019-11-15 12:59:38 +01:00

4 lines
151 B
Python

keys = ['red', 'green', 'blue']
values = ['#FF0000','#008000', '#0000FF']
color_dictionary = dict(zip(keys, values))
print(color_dictionary)