Online tests

In most weeks there will be an online test in which you will be asked to enter some Python code. For example, a question might ask you to define a function add_forty_two(x) that accepts an argument $x$, adds $42$ to it, and returns the result. You would then enter the following code:

def add_forty_two(x):
    """Add 42 to x."""
    return x+42