First page Back Continue Last page Overview Graphics

Functions

The general format is as follows:

def <name>(<Parameter List>):

<statements>

The <Parameter List> consists of one or more variables, which are separated by commas:

arg1, arg2,... argN

Parameter can be obligatory and optional. The optional parameter (0 or more) have to follow the obligatory ones.