A
A
Alex_Weidman2017-06-23 22:58:30
linux
Alex_Weidman, 2017-06-23 22:58:30

Problem with Python and linux. What have I done wrong?

Good evening everyone! Ubuntu 17.4, IDE - Geany.
An example right away to make it clear:
questions = input ('Write any symbols') I
run this line of code, I enter fsff from the keyboard
The Traceback
error is
displayed (most recent call last):
File "no name.py", line 1, in
questions = input ("Write any symbols")
File "", line 1, in
NameError: name 'fsff' is not defined
The error does not come up if I enter text from the keyboard, framing it on both sides with quotes (for example, like this "fsff")
What have I done wrong?
At home on Windows and Visual Studio 2017, everything works without problems, but here is such an incomprehensible error ..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
chupasaurus, 2017-06-23
@Alex_Weidman

In python before 3.0 input() = eval(raw_input())PEP-3111

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question