match signal:
case “red”:
print(“Stop”)
case “yellow”:
print(“Slow down!”)
case “blue” | “green”:
print(“Go!”)
case _:
print(“Invalid signal color…”)
match signal:
case “red”:
print(“Stop”)
case “yellow”:
print(“Slow down!”)
case “blue” | “green”:
print(“Go!”)
case _:
print(“Invalid signal color…”)