Need your help on String Formatting with %, Part 2


#1

Hi Everyone, I met a problem on String Formatting with %, Part 2

I write the code as following and can't continue the next step. What should do to move on?

Or could you tell me what the right code is?

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)

Please see the screenshot.


#2

@617816 ,

After submitting your code, did you enter information after each of the three prompts that appeared in the console on the right?

Until you enter information at each of the prompts, you cannot continue to the next exercise.


#3

I have the same issue as the OP. I do not receive any prompts to type answers.


#4

I had the same issue. No promts to continue


#5

I restarted the lesson and was able to get to the prompts this time.
On my first attempt, I typed out "%s", copied it and pasted it into the other "___" spots. I'm not sure if this was the problem, but manually typing in "%s" fixed it for me.


#6

2 posts were split to a new topic: String Formatting with %, Part 2


#7