Name/quest/color portion


I'm having an error with the name/quest/color portion of the section: coding string formatting with %

This is what I'm entering:

name = "My name is %s" % Adam
quest = "My quest is %s" % Learn
color = "My color is %s" % Red

print "Ah, so your name is %s, your quest is %s, " \
"and your favorite color is %s." % (name, quest, color)

Having an issue coding string formating with %

In the above, Adam, Learn and 'Red are undefined identifiers. They should be plain strings.

name = "Adam"
quest = "Learn"
color = "Red"

Now the print statement will work as expected.