StyleShare/simples3 — comment on commit 23d76245ec1540eb873ce015b4f194827ae990d7
File:  line 0
By lericson:

There's a better way to do this with the `else` clause to the `for` loop, actually:

```python
def f(L):
for i in L:
pass
print "last =", i

for i in L:
pass
else:
print "last =", i

f([])
f([1])
```