8 lines
103 B
Python
8 lines
103 B
Python
|
# test returning from within a for loop
|
||
|
|
||
|
def f():
|
||
|
for i in [1, 2, 3]:
|
||
|
return i
|
||
|
|
||
|
print(f())
|