0

I am having problems with my game. I use the console to play. But I'm not sure why my console shows this:

File "/Volumes/AIDAN'S USB/MyGameFromScratch/assets/items.py", line 4
    original = raw_input(‘What is your name?’)
                         ^
SyntaxError: invalid syntax
  • this helps you? http://stackoverflow.com/questions/954834/how-do-i-use-raw-input-in-python-3-1 – neiesc Apr 03 '15 at 11:23
  • 1
    @neiesc that's not the problem. Check my answer. BTW, the error character shown by python is pointing the quotation mark, not saying that the function does not exist. –  Apr 03 '15 at 11:28
  • @JuanRocamonde you're right, I thought quickly. – neiesc Apr 03 '15 at 11:30

1 Answers1

4

You are adding different quotation marks:

Yours:

original = raw_input(‘What is your name?’)

Mine:

original = raw_input('What is your name?')

Do you notice?

By the way, raw_input no longer works in Python 3. It is now input