[Strings and Console Output]

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

Hi I am just wondering what does the symbol \ (dash between the two strings) signify in the second last line?

Strings and Console Output


\ allows escaping, this allows you to put the code over two lines




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