Please help me in 15/16 python


#1

i dont get it please help

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 %, " \"and your favorite color is %." % (name, quest, color)

thanks!!


#2

Your print statement is wrong.

You need to put "%s" all 3 times, and I'm not sure what you're trying to do with the \


#3

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 %, " \"and your favorite color is %." % (name, quest, color)

thanks!!


#4

thanks but it still gives error

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)


#5

Use backslash "\" instead normal slash "/"


#6

print "Ah, so your name is %s, your quest is %s, and your favorite color is %s" % (name, quest, color) --> correct syntax
Why did you use in middle "\"?


#7

thanks but for some resson it did'nt work
but i figured
it out here

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)


#8

thanks it works

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)

( ;