Python Python Basics Meet Python Using Input

Shenna McAfee
Shenna McAfee
67 Points

task2 malfunction

in task 2 he prompt me to put red and I did and the answer was still wrong.... and the sentence read out correctly

using_input.py
input("What is your favorite color?")
favorite_color="red"
print("The color", favorite_color, "is a great color!")

1 Answer

Steven Parker
Steven Parker
176,634 Points

In task 1, when the instructions say "Store the result in a variable named favorite_color", they mean the result that is returned from the prompt. So it will get what the user types in, which may not always be "red":

favorite_color = input("What is your favorite color?")