Skip to content

Instantly share code, notes, and snippets.

@poros
Created October 4, 2015 13:21
Show Gist options
  • Save poros/193b4b9afc108c5eba16 to your computer and use it in GitHub Desktop.
Save poros/193b4b9afc108c5eba16 to your computer and use it in GitHub Desktop.
Construct dictionary from pairs
dict(izip(keys, values))
# reuses the same tuple!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment