while and for loops may have an else block that is executed if the loop terminates naturally, that is, not by a break statement.
There is a no-op statement called pass.
Assignments to variables do not return the assigned value; they are statements, not expressions.
You can build your own iterables by implementing a next method that raises [...]
Archives for the Date February 19th, 2008
Learning Python: Chapter 13
Tuesday, 19 February 2008
A Short History of Nearly Everything
I Am a Strange Loop
Seven Languages in Seven Weeks