Python Python Basics Meet Python Using Input

james mccarthy
james mccarthy
6,013 Points

favorite_color = 'orange' orange = input('What is your favorite color? ')

what am i doing wrong =(

using_input.py
favorite_color = 'orange'
orange = input('What is your favorite color?  ')

1 Answer

Steven Parker
Steven Parker
176,365 Points

You don't need the variable "orange". The result of calling "prompt" should be assigned directly to favorite_color.

You also don't need a string literal with a color in it. The color will be entered by the user when the program runs.