Skip to content

Instantly share code, notes, and snippets.

@carcigenicate
Last active December 27, 2020 15:23
Show Gist options
  • Save carcigenicate/85791d4818d1bf30c9f405ad820c451e to your computer and use it in GitHub Desktop.
Save carcigenicate/85791d4818d1bf30c9f405ad820c451e to your computer and use it in GitHub Desktop.
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
@danielhao5
Copy link

Thanks. That's quite advanced, and it did work!

Have a nice Holidays!

@carcigenicate
Copy link
Author

@danielhao5 No problem, and you as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment