def startgreen(): print("Green light on") green.on() yellow.off() red.off() # Turn the green off and the amber on for 3 seconds # ('Pedestrian' red LED stays lit)