IskatelОна пишет не на тройке, а на двойке.
WoMax не прав в своих суждениях. Код который представил
py.user.next - это не сарказм, а намек почему у ТС появилась это проблема.
Все дело в различии функций input на разных версиях питона. Достаточно первых строчек документации что бы выяснить правду, и объяснить результат который получается у
py.user.nextpython 2.7
input()
Equivalent to eval(raw_input(prompt)).
This function does not catch user errors. If the input is not syntactically valid, a SyntaxError will be raised. Other exceptions may be raised if there is an error during evaluation.
If the readline module was loaded, then input() will use it to provide elaborate line editing and history features.
Consider using the raw_input() function for general input from users.
python 3.4
input()
If the prompt argument is present, it is written to standard output without a trailing newline. The function then reads a line from input, converts it to a string (stripping a trailing newline), and returns that. When EOF is read, EOFError is raised.
If the readline module was loaded, then input() will use it to provide elaborate line editing and history features.
Т.е. при вводе строки 25/5/89 в функцию input второго питона произойдет интерпретация и выполнение этой строки, а именно арифметические действия. Поэтому для ввода пользовательских данных во втором питоне применяется raw_input.