Question

Problems:

1. (One-way Traffic light) Using the example code for the

blinking yellow light, develop a python program to display

a single traffic light with the following required cases:

a. Green light turns on for 5 seconds while the yellow

and red LED are off.

b. Yellow light turns on for 1 second while the red and

green LED are off.

c. Red light turns on for 5 seconds while the yellow and

green LEDs are off.

Question image 1