Ejemplo n.º 1
0
def green_light():
    trafficlight = Traffic()
    trafficlight.setStand(0)
    trafficlight.update_light()
    return 'Hello, World!'
Ejemplo n.º 2
0
def red_light():
    trafficlight = Traffic()
    trafficlight.setStand(3)
    trafficlight.update_light()
    return 'Hello, World!'
Ejemplo n.º 3
0
def amber_light():
    trafficlight = Traffic()
    trafficlight.setStand(1)
    trafficlight.update_light()
    return 'Hello, World!'