Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created Jul 21, 2020
Embed
What would you like to do?
l1=['red','green','blue']
l2=[0,1,2]
l3=[(n1,n2) for n1,n2 in zip(l1,l2)]
print (l3)#Output:[('red', 0), ('green', 1), ('blue', 2)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment