Created
May 9, 2019 08:59
-
-
Save ItsCosmas/d689aeef3df9bab95ffa17c80ad4ea68 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 even_numbers(x): | |
for i in range(x): | |
if i % 2 == 0: | |
yield i | |
for i in even_numbers(100): | |
print(i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment