Write a program to output the signal status based on the signal colour taken as input.
2 answers:
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.
You might be interested in
You will feel the screen protector crack
I'd say the best option would be B.
The answer to this question is b that's the answer
A doorknob is an example of a:
D. Wheel and Axle.
I hope this helped ^_^
Answer:
They didn't do it right.
Explanation: