Start typing or press to get going!
The python code you'll be racing to type out is all about:
A function is like a procedure except that it always returns a value.
This return value is calculated when the function is called and can be saved into a variable or used later in the program.
Both functions and procedures are sections of code that have been given a name, which can be re-used to do something useful.
This example defines a function which chooses a random word. This function is called twice with the return value being stored into separate variables.