Skip to content

Instantly share code, notes, and snippets.

@kunigami
Created February 1, 2020 23:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunigami/006a514efd4dd7cdde6ea44d8d9d809b to your computer and use it in GitHub Desktop.
Save kunigami/006a514efd4dd7cdde6ea44d8d9d809b to your computer and use it in GitHub Desktop.
def generator2():
for i in range(10):
yield i
def generator3():
for j in range(10, 20):
yield j
def generator():
for i in generator2():
yield i
for j in generator3():
yield j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment