Python Python Basics Meet Python Using Input

Marian Mwendamberi
Marian Mwendamberi
73 Points

finding it difficult using_input.py

using_input.py
favorite_color=("what is your favorite_color")

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 57,149 Points

You are very close. The built-in function input must be called to prompt the user. By adding the word "input" before the parens, the statement becomes a function call:

favorite_color = input("the user prompt is first argument")

The challenge is looking for a specific string use as the prompt. Your string:

"what is your favorite_color" is not quite correct. The underscore needs removing and add a question mark followed by a space at the end.

Post back if you need more help. Good luck