Respuesta :
Answer:
colour = "YELLOW"
signalMap = {
"RED" : "STOP",
"YELLOW" : "WAIT",
"GREEN" : "GO"
}
print(colour + " means " + signalMap[colour])
Explanation:
Since python doesn't have switch statements, this map is a useful alternative.
Answer:
colour = "YELLOW"
signalMap = {
"RED" : "STOP",
"YELLOW" : "WAIT",
"GREEN" : "GO"
}
print(colour + " means " + signalMap[colour])
Explanation:
Since python doesn't have switch statements, this map is a useful alternative.