Код: Выделить всё
def both_ends(s):
print s[0:2], s[3:5]
return
x = input('...: ')
both_ends(x)
sergei@sergei-MS-7253:~/Desktop/p2$ python test2.py
...: haloj
Traceback (most recent call last):
File "test2.py", line 10, in
x = input('...: ')
File "", line 1, in
NameError: name 'haloj' is not defined
Спасибо
Подробнее здесь: https://stackoverflow.com/questions/931 ... ined-error
Мобильная версия