I am getting an error when I try to run this simple script:
input_variable = input ("Enter your name: ")
print ("your name is" + input_variable)
Let's say I type in "Niraj", the error I am getting is:
line 1, in <module>
input_variable = input ("Enter your name: ")
File "<string>", line 1, in <module>
NameError: name 'Niraj' is not defined
If you want to unleash your potential in this competitive field, please visit the Python course page for more information, where you can find the Python tutorials and Python frequently asked interview questions and answers as well.