I am using Enthought Canopy compiler. I am trying to get a word input from user using this code below:
starting_day = str(input("Enter the day you will be leaving: "))
however whenever I test the var by running the program I keep getting the error below after assigning a string of letters to the variable(it's runs when I give it numbers)
Enter the day you will be leaving: monday
NameError Traceback (most recent call last)
C:\Users\user\AppData\Local\Enthought\Canopy32\App\appdata\canopy-1.1.0.1371.win-x86\lib\site-packages\IPython\utils\py3compat.pyc in execfile(fname, glob, loc)
174 else:
175 filename = fname
--> 176 exec compile(scripttext, filename, 'exec') in glob, loc
177 else:
178 def execfile(fname, *where):
c:\users\user\appdata\local\temp\tmpnwkfhu.py in <module>()
----> 1 starting_day = str(input("Enter the day you will be leaving: "))
2
3 lenght_of_stay = int(input("Enter the number of days you will say for: "))
4
5 print(starting_day, lenght_of_stay)
<string> in emulated_input(prompt)
<string> in <module>()
NameError: name 'monday' is not defined