def get_natural_number():
    n = 0
    while True:
        n += 1
        yield n


g = get_natural_number()
for _ in range(0, 100):
    print(next(g))


def generator():
    yield 1
    yield "string"
    yield True


a = generator()
print(next(a))
print(next(a))
print(next(a))
