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.
6.6m questions
8.8m answers