Last active
January 26, 2020 21:00
-
-
Save kunigami/ebb1c733dab2eaa5725612f63055344f 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 range_gen(start, end, step): | |
i = start | |
while i < end: | |
yield i | |
i += step | |
for i in range_gen(1, 10, 2): | |
print(i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment