Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
iterating lists through multi-variables
import itertools
lst1 = [1,2,3,4,5]
lst2=["banana","apple","mango","berry"]
lst3=["black","red"]
for (a, b, c) in zip(lst1, lst2, lst3):
print (a, b, c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment