Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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