Three things round off the basics of functions: a short way to write a tiny one on the spot, the large set of functions Python already gives you, and the habit of documenting your own so that others, and you, can use them.
More lessons in Complete Python Programming