Untitled
Anonymous
python
01/31/2026 10:43 AM
364 B
15
Indexable
answer = input("What color is the traffic light ?").lower()
if answer == "red":
print("You need to stop!")
elif answer == "green":
print("You can go!")
elif answer == "orange":
print("You need to slow down!")
else:
print("Wrong color!") Editor is loading...
Leave a Comment