I'm running Python version 2.7:
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
When I try to run this line of code :
x = input('Enter your name:')
print('Hello, ' + x)
I have the following error:
$ python index.py
Enter your name:acb
Traceback (most recent call last):
File "index.py", line 1, in <module>
x = input('Enter your name:')
File "<string>", line 1, in <module>
NameError: name 'acb' is not defined
Does anyone know how to solve this?