Wednesday, June 15, 2016

Beginner- Questions about a code

I am trying to make a program that asks questions and allows the user to answer them. When I try to use raw_input it gives me an error. Can anyone tell me what I am doing wrong?

name = raw_input("What is your name?")
color = raw_input("What is your favorite color?")

print = ("So your name is %s and your favorite color is %s." % (name, color))

I would like for it to allow the user to enter their name and favorite color and the output include the sentence with the information.

I have read online that raw_input might not work anymore but input did not allow me to answer to questions.



1 comment: