String Formatting with % not working on terminal


#1

I'm trying to use some of the lessons I've learned on codeacademy in my text editor but it's not recognizing the % symbol after print line.

name = raw_input("What is your name?")
quest = raw_input("What is your quest?")
color = raw_input("What is your favorite color?")

print "Ah, so your name is %s, your quest is %s, and your favorite color is %s." % (name, quest, color)

It says I have a syntax error but I don't know what to do to fix it.


#2

What Python IDE are you working with?


#3

Vim on the Yakuake emulator


#4

Is it running Python 3? If so, I don't believe raw_input is used anymore. Just use input and see if that changes anything (I don't have anything on my machine so can't test for you).