Functions

Two types of arguments: positional and keyword
def myfync(pos1, pos2, pos3, kw1=v1, kw2=v2):
    ...
3 positional arguments, 2 keyword arguments (keyword=default-value)
Input data are arguments, output variables are returned as a tuple
def somefunc(i1, i2, i3, io1):
    """i1,i2,i3: input, io1: input and output"""
    ...
    o1 = ...; o2 = ...; o3 = ...; io1 = ...
    ...
    return o1, o2, o3, io1

previousnexttable of contents