-
-
Save reusee/eee942ee2b5f750558f158e3f8a2c530 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
import itertools | |
def l(): | |
while True: | |
for e in ['a', 'b', 'c', 'd']: | |
yield e | |
print(list(itertools.islice(l(), 7))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment