pythonreference.com
search statements, functions, methods, exceptions*
hide categories'elif' statement | if the prior 'if' is False and this test is True, enter the block |
'else' statement | if all prior if/elif tests in this chain are False, enter the block |
'if' statement | if test is True, enter the block |
'not' test inverter | negates a test to be False (if test is True) and True (if test is False) |
'while' statement | execute block repeatedly until test is False (or 'break' is encountered) |
break | exit a looping block and continue execution below it |
continue | jump loop execution to the top of a looping block |
def | define a function |
define a function with no arguments and no return values | |
for | iterate over each item in a file or container |
import | import a module |
multiple target assignment | assign multiple values to individual variables |
raise | raise an exception |
try/except | handle specified exception and run routine |