For branching statements,
is a block of all the statements
that are indented further, up to but not including the next
statement that is not indented further; blank lines don't count.B
You can put the block
on the
same line as the branching statement, after the colon
(B:). Multiple statements can be so
placed, with semicolons (;)
separating them.
In the sections below on the
“if” and
“while” statements, we speak of
values being true or false. For Python's purposes, the
following values are considered false:
Any number equal to zero: 0, 0.0, 0L, 0j.
Any empty sequence (such as the empty list
“[]” or the empty tuple
“()”).
An empty mapping, such as the empty dictionary
“{}”.
The special value
None.
Any other value is considered true.