[Strings and Console Output]


#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, 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


#2

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


#3

52%20PM


#4

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