1 2 3 4 5 6 7
# test returning from within a for loop def f(): for i in [1, 2, 3]: return i print(f())