Topic: Input with Python
Hello everyone,
I'm brand new to python, but i have used java, c++, and c#. I'm working through some tutorials and im coming across the following problem:
When i try to get user input, i expect the following
name = input("Please enter your name: ")
>>>Greg
print("Hello", name)
>>>Hello, Greginstead what i get is this:
Please enter your name: Greg
Traceback (most recent call last):
File "C:...py", line 1, in <module>
name = input("Please enter your name: ")
File "<string>", line 1, in <module>
NameError: name 'Greg' is not definedI have determined that when i use quotes around the input, the program executes succesfully, ie. entering 'Greg' in stead of Greg. Is this how python input works ? or am i just making a dumb syntax error i'm not recognizing ?