Answer:
colour = "YELLOW"
signalMap = {
"RED" : "STOP",
"YELLOW" : "WAIT",
"GREEN" : "GO"
}
print(colour + " means " + signalMap[colour])
Step-by-step explanation:
Since python doesn't have switch statements, this map is a useful alternative.
5.9m questions
7.7m answers