Source Code:
(back to article)
keys = ['a', 'b', 'c'] values = [1, 2, 3] my_dict = dict(zip(keys, values)) print(my_dict) # {'a': 1, 'b': 2, 'c': 3}
Result:
Report an issue