def produce(): print("start") yield 7 print("end") stream = produce() print("made") print(next(stream))