zip list to dictionary python

Solutions on MaxInterview for zip list to dictionary python by the best coders in the world

showing results for - "zip list to dictionary python"
Noemi
18 Jan 2017
1keys = ['a', 'b', 'c']
2values = [1, 2, 3]
3dictionary = dict(zip(keys, values))
4print(dictionary) 
5# {'a': 1, 'b': 2, 'c': 3}