Got stuck please help


#1

<
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)

`


#2

This is a python lesson not a javascript one. :smile:

Your string placeholders should just be
%s
and not

%s__

And you need to nest the text in three quotation marks for a multi line string.

" " " any string " " "


#3

Your code should look like this:

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)


#4

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