create dictionary key and values from lists

Solutions on MaxInterview for create dictionary key and values from lists by the best coders in the world

showing results for - "create dictionary key and values from lists"
Simone
05 Sep 2018
1keys = ['a', 'b', 'c']
2values = [1, 2, 3]
3dictionary = dict(zip(keys, values))
4print(dictionary) # {'a': 1, 'b': 2, 'c': 3}
5