Last active
December 27, 2020 15:23
-
-
Save carcigenicate/85791d4818d1bf30c9f405ad820c451e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def my_zip(*iterables): | |
iters = [iter(i) for i in iterables] | |
while True: | |
try: | |
yield tuple([next(it) for it in iters]) | |
except StopIteration: | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks. That's quite advanced, and it did work!
Have a nice Holidays!