Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 21 Online
OpenStudy (anonymous):

Do I need to download a pack? Traceback (most recent call last): File "C:/Python32/MIT Lec 2.py", line 7, in n = raw_input('Enter a number:') NameError: name 'raw_input' is not defined

OpenStudy (anonymous):

Sorted it out, raw_input has changed to just input

OpenStudy (anonymous):

Probably you're using version 3.2 of Python. If this is the case you also have to parenthasise prints and occassionally type cast computations. Hope this helps.

OpenStudy (anonymous):

raw_input is eliminated in the 3.X version of Python.. if that is the version that you are using, just use input(), they are the same in Python 3.X Otherwise, you can download Python 2.7, the old raw_input() still works in this version.

OpenStudy (anonymous):

Thanks folks

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!