# 신호등 프로그램
light = input("신호등 색깔을 입력하세요. (빨강/노랑/초록 중에 입력하세요) \n")
print('나의 답변: ' + light)
if light == "빨강":
print("멈추세요! 🚫")
else:
print("건너세요! 🟢")
# 신호등 프로그램
light = input("신호등 색깔을 입력하세요. (빨강/노랑/초록 중에 입력하세요) \n")
print('나의 답변: ' + light)
if light == "빨강":
print("멈추세요! 🚫")
elif light == "노랑":
print("주의하세요! ⚠️")
elif light == "초록":
print("건너세요! 🟢")
else:
print("잘못된 입력이에요. 빨강, 노랑, 초록 중에서 입력해주세요.")
To embed this project on your website, copy the following code and paste it into your website's HTML: