Python Python Basics Meet Python Using Input

task 2

i dont know how to finish this off
favorite_color = "Mauve"
input("What is your favorite color?")
print("The color,", favorite_color, "is a great color!")

1 Answer

Alex Koumparos
Alex Koumparos
Python Web Development Techdegree Student 35,918 Points

Hi Tafadzwa,

You are not being asked to supply your own favourite colour. As such, you don't need your first line. Instead, you are using input to solicit the user's favourite colour. It is this value that you want to assign to your variable. For example, if I wanted to ask the user their name and save that response to a variable, I might write the following code:

name = input("What is your name? ")