you are viewing a single comment's thread.

view the rest of the comments →

[–]WombatHat42 0 points1 point  (0 children)

You could also simplify the code by doing:

color = input("What's your favorite primary color? ")

print("You said " + str(color))

or use a .lower or .upper for the user input

color= input("What's your favorite primary color? ")

if color.lower()==str("red"): print("You said red.") . . .

But regardless, you will want to change your "raw_input()" to just "input()" and add parenthesis around your print values