def choosing_room():
print "Welcome! You now must choose!"
answer = raw_input("Type a or b and hit Enter")
if answer == 'a' or 'A':
print "You chose 'a'!"
elif answer == 'b' or 'B':
print "You chose 'b'!"
else:
print "That is incorrect, please try again"
choosing_room()
choosing_room()
Это мой код. Это очень просто, но по какой-то причине он постоянно возвращается и сообщения об ошибке reference error: 'prompt' is undefined
Сообщение об ошибке для python
ПОЧЕМУ ВЫ СМОТРИТЕ ?! И можете ли вы предоставить полную трассу? – jonrsharpe
1. Ваше сообщение об ошибке не соответствует коду. 2. Сравнение 'reply == 'a' или 'A'' должно быть' answer ==' a 'или answer ==' A'' –