Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 21, 2020 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/38f3f1ebb17f45663a140d6f1cf1f7be to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/38f3f1ebb17f45663a140d6f1cf1f7be to your computer and use it in GitHub Desktop.
d1={'color','shape','fruit'}
d2={'red','circle','apple'}
d3={k:v for (k,v) in zip(d1,d2)}
print (d3) #Output: {'fruit': 'circle', 'shape': 'red', 'color': 'apple'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment