Functions

Practice function definitions and function calls. The higher difficulty levels include function composition, such as f(g(x)).

If you're not familiar with functions, check out ch. 3 and ch. 6 of Think Python.

The programs in this quiz are randomly generated and will be different every time. Practice a little every day to see your scores improve.

After you finish, you can edit and run all of the programs from the quiz.