Quiz Catalog

Catalog of quizzes

def numbers_range(n):
  for i in range(n):
    yield i

a = numbers_range(4)

print(next(a))
0
  • statement/yield
  • generator/definition