# Display "What is your name?", then store the string user entered and assign it to the variable name.
name = raw_input('What is your name?')
# Display the question, and the user enter the string, then assign it to the variable.
age = raw_input('How old are you?')
# Display the question, and the user enter the string, then assign it to the variable.
color = raw_input('What is your favorite color?')
# print the whole sentence connecting all the variables. %s stands for certain string in the offset (name, age, color)
print "Ah, so your name is %s, and you are %s, your favorite color is %s." %(name, age, color)
No comments:
Post a Comment