Functions
Syntax:
def name(parameters):
statements
return object
E.g.
>>> def incr(x):
return x + 1
>>> incr(3)
4
Previous slide
Next slide
Back to first slide
View graphic version