def traffic_light(load):
    """Returns green, amber or red depending on the value of load."""
    if load < 0.7:
        return "green"
    elif load < 0.9:
        return "amber"
    else:
        return "red"