Correction on Traffic Lights Alternative recipe

This commit is contained in:
Barry Byford
2016-03-19 11:43:41 +00:00
parent 3d78d76463
commit 8ce5e12919

View File

@@ -167,6 +167,8 @@ Alternatively::
from time import sleep from time import sleep
from signal import pause from signal import pause
lights = TrafficLights(2, 3, 4)
def traffic_light_sequence(): def traffic_light_sequence():
while True: while True:
yield (0, 0, 1) # green yield (0, 0, 1) # green