Created
May 26, 2019 13:00
-
-
Save Linus-Albertus/672a4ac55a4a7b77ccc54f653e3ec3df to your computer and use it in GitHub Desktop.
[zipping elements to dict] Zipping two or more elements from two lists and create a dictionary #python #zip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keys = ['a', 'b', 'c'] | |
values = [1, 2, 3] | |
zipped_dict = dict(zip(keys, values)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment