PythonExtra/tests/basics/for_return.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
103 B
Python
Raw Permalink Normal View History

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