code.py
def next_colour(c):
    """ Takes a colour and returns the next stoplight colour, in the
    following order: `RED`, `YELLOW`, `GREEN`.

    Will return `RED` as the next colour for unrecognized colours.
    """

    if c == RED:
        return YELLOW
    elif c == YELLOW:
        return GREEN
    else:
        return RED
 Takes a colour and returns the next stoplight colour, in the
    following order: `RED`, `YELLOW`, `GREEN`.

    Will return `RED` as the next colour for unrecognized colours.
    


Will return `RED` as the next colour for unrecognized colours.
Will return ` RED ` as the next colour for unrecognized colours .
def next_colour(c):
    if c == RED:
        return YELLOW
    elif c == YELLOW:
        return GREEN
    else:
        return RED
def next_colour ( c ) : if c == RED : return YELLOW elif c == YELLOW : return GREEN else : return RED
Takes a colour and returns the next stoplight colour, in the
following order: `RED`, `YELLOW`, `GREEN`.
Takes a colour and returns the next stoplight colour in the following order : ` RED ` ` YELLOW ` ` GREEN ` .
""" Takes a colour and returns the next stoplight colour, in the
    following order: `RED`, `YELLOW`, `GREEN`.

    Will return `RED` as the next colour for unrecognized colours.
    """
c