"String Formatting With %, Part 2"


#15

How long should i wait after submiting


#16

Assuming your code is correct it shouldn't be any time at all. Please post your code, any error messages, and a link to the actual exercise. Thank you.


#17

What is your name?

this is what i get when i replace the underscores with %s and %


#18

Still could use a link to this exercise. We need to be on the same page.


#19

i have been on this all day. my very first time to program.
i really need help


#20

Is this the exercise you are working on?

https://www.codecademy.com/en/courses/python-beginner-sRXwR/3/4


#21

yes. that is the exercise


#22

Post your code please :slightly_smiling:


#23

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)


#24

Not sure why that wouldn't work, looks exactly the same as my code.

Runs fine in a script checker also, refresh the browser and try to submit again.

Or what's the error message being displayed?


#25

i get this: What is your name?


#26

Do you then type in your name and press enter?


#27

after submitting, it stays for ever before it returns the error


#28

Not sure why,

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 gives me 3 options to enter. so Ben code blue

returns Ah, so your name is Ben, your quest is code, and your favorite color is blue.

Dont know why yours wont work.


#29

how did u input the entry: Ben, Code and Blue


#30

No, i did not type my name


#31

thank you Ben
i just typed my name and quest and color and it worked.
Thank you


#32

yes that works thanks a lot :)wink:


#34

A post was split to a new topic: Is it a newer version of Python that's the problem?


#36