Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created Jul 21, 2020
Embed
What would you like to do?
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