SyntaxFix
Write A Post
Hire A Developer
Questions
You should use 'zip' function. Here is an example how your own zip function can look like
def custom_zip(seq1, seq2): it1 = iter(seq1) it2 = iter(seq2) while True: yield next(it1), next(it2)