ниже приведен код, который у меня есть в файле input.py р>
Код: Выделить всё
person = input('Enter your name: ')
print('Hello', person)
Код: Выделить всё
Johnathans-iMac:scripts johnathansmith$ python input.py
Enter your name: John
Traceback (most recent call last):
File "input.py", line 1, in
person = input('Enter your name: ')
File "", line 1, in
NameError: name 'John' is not defined
Подробнее здесь: https://stackoverflow.com/questions/423 ... s-with-mac
Мобильная версия