If you are used to the C kind of for loops, avoid mistakes like this one: >>> for i in range(1,6): ... print i ... i+=2 ... 1 2 3 4 5
Obvious if you know you are iterating over a sequence. -- http://mail.python.org/mailman/listinfo/python-list
If you are used to the C kind of for loops, avoid mistakes like this one: >>> for i in range(1,6): ... print i ... i+=2 ... 1 2 3 4 5
Obvious if you know you are iterating over a sequence. -- http://mail.python.org/mailman/listinfo/python-list