Код: Выделить всё
ppp=input('Enter a, or b. or exit to exit')
while ppp!='exit':
if ppp=='a' or ppp=='A':
print('You Picked A')
ppp=input('a,b, or c?: ')
elif ppp=='b' or ppp=='B':
print('You Picked B')
ppp==input('a,b, or c?: ')
else:
print ('please choose a, or b')
Код: Выделить всё
Traceback (most recent call last):
File "temp.py", line 1, in
ppp=input('Enter a, or b. or exit to exit')
File "", line 1, in
NameError: name 'a' is not defined
Подробнее здесь: https://stackoverflow.com/questions/280 ... tion-error
Мобильная версия