From e177e2feed1bfbe29f32c3378978313d19ce1c26 Mon Sep 17 00:00:00 2001 From: ptmcg Date: Mon, 31 Dec 2018 13:10:59 -0600 Subject: Add document signoff and library book state examples; --- examples/statemachine/trafficLightDemo.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/statemachine/trafficLightDemo.py') diff --git a/examples/statemachine/trafficLightDemo.py b/examples/statemachine/trafficLightDemo.py index ea42180..4fc737c 100644 --- a/examples/statemachine/trafficLightDemo.py +++ b/examples/statemachine/trafficLightDemo.py @@ -26,9 +26,8 @@ class TrafficLight: light = TrafficLight() for i in range(10): - print(light, end=' ') - print(("STOP", "GO")[light.carsCanGo]) - light.crossingSignal() + print("{} {}".format(light, ("STOP", "GO")[light.cars_can_go])) + light.crossing_signal() light.delay() print() -- cgit v1.2.1