Last active
December 9, 2018 13:40
-
-
Save nattybear/df6d7dfdacb588c271857a6219f9c914 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 zip(xs, ys): | |
x, y = map(len, [xs, ys]) | |
z = x if x < y else y | |
return [(xs[i], ys[i]) for i in range(z)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment