'''
Generators
'''


def create_cubes(n):
    for x in range(n):
        yield x ** 3


gen = create_cubes(10)
print(next(gen))

471c930a494fa3de2bde60aa3b0ad32be0bbbf04
<mask token>

<mask token>


def create_cubes(n):
    for x in range(n):
        yield x ** 3


<mask token>

<mask token>


def create_cubes(n):
    for x in range(n):
        yield x ** 3


<mask token>
print(next(gen))

<mask token>


def create_cubes(n):
    for x in range(n):
        yield x ** 3


gen = create_cubes(10)
print(next(gen))

'''
Generators
'''


def create_cubes(n):
    for x in range(n):
        yield x ** 3


gen = create_cubes(10)
print(next(gen))
