Predict

Paused in Time

Generators are lazy: they only run when you ask for a value. Follow the prints carefully.

def glow():
    print("A")
    yield 1
    print("B")
    yield 2

g = glow()
print("start")
print(next(g))

What does this program print?