I have a virtual machine CentOS Linux release 7.6.1810, I have installed python2 and I have the below python script:
#!/bin/python2
name = input('Please insert your name: ')
age = input('Please insert your age: ')
age = eval(age)
When I execute the script I'm getting the below standard output and standard error:
[rogeliovs@hostname ~]$ python ./helloworld.py
Please insert your name: rogelio
Traceback (most recent call last):
File "./helloworld.py", line 7, in <module>
name = input('Please insert your name: ')
File "<string>", line 1, in <module>
NameError: name 'rogelio' is not defined
[rogeliovs@hostname ~]$
Why I' getting that error ??????