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