anonymous
  • anonymous
Hi all...I am using python 3.2 ...there is an error when i type raw_input it says not defined...anyone have a clue??? thanks
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
katieb
  • katieb
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
maybe your variable is not defined...
anonymous
  • anonymous
>>> x = raw_input (" enter youe first name ") Traceback (most recent call last): File "", line 1, in x = raw_input (" enter youe first name ") NameError: name 'raw_input' is not defined
anonymous
  • anonymous
you must declare your variable first, maybe x as string

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
>>> "x" = raw_input ("enter your first name " ) SyntaxError: can't assign to literal how to do that please.
anonymous
  • anonymous
In python3.2 you can simply write x=input('Enter your first name\n') and if you need integers, y=int(input('Your age\n'))
anonymous
  • anonymous
Yes it worked...thanks a lot
anonymous
  • anonymous
If you are going to use 3.x instead of 2.x as the course instructions stipulated you should be prepared to figure out the differences between 3.x and 2.x ... 3.x is NOT backward compatible

Looking for something else?

Not the answer you are looking for? Search for more explanations.