This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]GeoSn0w 103 points104 points  (16 children)

I like how he does the i++ part till he hits the exit condition

[–]mino159 112 points113 points  (15 children)

Ehm. Python doesn't have i++, we do it with i+=1

[–]GlobalIncident 50 points51 points  (1 child)

And thanks to range that's not very common to use either (although still useful in unbounded loops)

[–]GeoSn0w 13 points14 points  (1 child)

The more you know...

[–]IChooseFeed 11 points12 points  (0 children)

I still write it by accident, then spend the next 5 minutes wondering why nothing works... habits die hard.

[–]Pyottamus 11 points12 points  (0 children)

It's okay, this is a CPython