Python Python Basics Meet Python Using Input

finding it difficult
favorite_color=("what is your favorite_color")

1 Answer

Maxwell Newberry
Maxwell Newberry
7,675 Points

Hey there Marian, welcome to Python! In Python, to get a user's input we use a method called input(). All you need to do is put input before the parenthese in your code like this:

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

Correct answer