statements operators functions string methods set methods tuple methods dict methods file methods list methods exceptions exception types comprehensions multidimensionals os lambdas subprocess
Intro to Python

Session 1 Session 2 Session 3 Session 4 Session 5 Session 6 Session 7 Session 8 Session 9




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