TypeError: unsupported operand type(s) for &: 'str' and 'tuple'


#1



I am stuck at this exercise: https://www.codecademy.com/courses/python-beginner-sRXwR/3/4?curriculum_id=4f89dab3d788890003000096#


Error message is TypeError: unsupported operand type(s) for &: 'str' and 'tuple'


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

It's %(name, quest, color) not & (name, quest, color)


#3

Oops! Thanks for that :slight_smile:


#4

You're welcome dude!


#5

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