Skip to content

Instantly share code, notes, and snippets.

@Linus-Albertus
Created May 26, 2019 13:00
Show Gist options
  • Save Linus-Albertus/672a4ac55a4a7b77ccc54f653e3ec3df to your computer and use it in GitHub Desktop.
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
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