>> input = raw_input ("/> >> input = raw_input ("/> >> input = raw_input ("/> >> input = raw_input ("/>
Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 8 Online
OpenStudy (anonymous):

Hello, I'm having some trouble with raw_input. In the textbook "How to Think Like a Computer Scientist," it tells me to put this in: >>> input = raw_input () What are you waiting for? However, as soon as I put the first line, it gives me a syntax error saying that raw_input is undefined. What am I doing wrong? Please help me. Thank you.

OpenStudy (anonymous):

Sorry, I figured this out. The new version of python uses input instead of raw_input. Therefore, by switching the two around and typing: >>>raw_input=input() What are you waiting for? it solves this problem.

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!