Damien George
11 years ago
3 changed files with 11 additions and 4 deletions
@ -0,0 +1,7 @@ |
|||
# test returning from within a for loop |
|||
|
|||
def f(): |
|||
for i in [1, 2, 3]: |
|||
return i |
|||
|
|||
print(f()) |
Loading…
Reference in new issue