Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 6 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!
Latest Questions
Arriyanalol: i need help
2 days ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
2 days ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
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!