Why does nothing happen when I press Run?

My computer has mental breakdown and crashes whenever I answer “what is your name?”
I know I did the code right I did,

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 will go on every single one

Can someone explain why we need the backward slash here? I did some research and to my understanding it is so that we can write code in a new line?

How come we can not just write it as one sentence like this
print “Ah, so your name is %s, your quest is %s, and your favorite color is %s.” %(name, quest, color)

Does it have something to do with making the code appear neater to look at?

None of the course materials on this works on repl.it because of a syntax error in the first quotation.

name = “Alex”

quest = “Teaching Python”

color = “Blue”

(print) "Ah, so your name is %s, your quest is %s, " \

“and your favorite color is %s.” % (name, quest, color)

Could be the error is staring one in the face…

Where do the parens actually belong? Certainly not around the function name.

2 Likes