News for hackers. Stuff that matters.
Re:A single line of Basic sends readers into a labyrinth by lifthrasiir on Saturday December 01, 2012 @05:22AM (#4857298)
It is a spec. Python in general prefers a statement over an expression, so the while statement does not have an expression form.
Re:A single line of Basic sends readers into a labyrinth by dalke on Saturday December 01, 2012 @06:11AM (#4857373)
Python has two types of statements; "simple" statement and "compound" statements. Compound statements are those, like the if- and while-statements, which require multiple lines.

Only simple statements may be separated by a ';', not compound statements.

This is a bit different than what you wrote. For example, "x=4" is a statement, and not an expression, but "x=4;y=5;z=6" is a valid Python line because assignment is a simple statement, and multiple simple statements may be separated by a ';'.