Conditionalsif-else
# Compute maximum (z) of a and b
if a < b:
z = b
else:
z = a
The pass statement
if a < b:
pass # Do nothing
else:
z = a
Notes:
|
| <<< | O'Reilly OSCON 2000, Advanced Python Programming, Slide 8 July 17, 2000, beazley@cs.uchicago.edu |
>>> |