def apply_opcode3(code_list, opcode_loc, programme_input=1):
    """When you've determined that the opcode is 3 - which means to take an
    input value and store it in the location of its only parameter then you can
    use this function to
    adjust code_list.

    Parameters
    ----------
    code_list : list
        The opcode
    opcode_loc : int
        The index of the opcode in code_list
    programme_input : int
        input value, default 1

    Returns
    -------
    code_list : list
        The whole programme
    """

    opcode, param1 = code_list[opcode_loc:opcode_loc+2]

    # Now lets actually do what the opcode says: put the input value at the
    # location given by param1
    code_list[param1] = programme_input

    return code_list