In need of help with string formatting with %, please


There isn't an error code. My name, Nikaela, is the only thing that prints in the box but the cog in the save and submit button continues to churn. I've tried refreshing and logging out and back in. Any thoughts on what might be happening? Internet connection is fine. I am unable to move forward.

I expected the whole phrase to be printed.

name = raw_input("Nikaela")
quest = raw_input("to learn Python")
color = raw_input("sage")

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


Nevermind. Got it! Thanks


you figured out raw_input() is a prompt to which you need to enter input?


I did. I hadn't seen in before but I know realize that it's a feature that turns the input into a string. Thanks for the response.


Hi,I have the same problem.Can you help me please?


Delete raw_input (). It's there to tell you to input something.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.