Let's say I have 2 lists
test1 = ["1","2","3"]
test2 = ["a","b","c","d","e"]
Now Id like to loop through both of them. But with the ability of test1 to repeat itself if the length of test2 is greater than test1
Ive found the zip function
for x , y in zip(test1,test2):
print(x)
print(y)
However this function will stop after all the elements of test1 have been iterated through
sample output
1 a 2 b 3 c
What id like to get is the following
1 a 2 b 3 c 1 d 2 e
thanks for the help!