In need of help with string formatting with %, please


#1


https://www.codecademy.com/courses/python-beginner-sRXwR/3/4?curriculum_id=4f89dab3d788890003000096#

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)

https://www.codecademy.com/courses/python-beginner-sRXwR/3/4?curriculum_id=4f89dab3d788890003000096#


#2

Nevermind. Got it! Thanks


#3

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


#4

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.


#5

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


#6

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


#7

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