Hello, can I determine somehow if the iteration on a list of values is the last iteration?
Example:
for i in [1, 2, 3]:
if last_iteration:
print i*i
else:
print i
that would print
1
2
9
Can this be acomplished somehow?
Thanks,
Florian
--
http://mail.python.org/mailman/listinfo/python-list
