Functions are defined using the def statement. They are called using the function name followed by parentheses, with any arguments inside the parentheses.
>>> def double(x): ... print x * 2 ... >>> double(3) 6