Python Python Basics Meet Python Using Input

mohan Abdul
PRO
mohan Abdul
Pro Student 1,453 Points

python basics coding challenge 2: the first question as follows - Prompt the user "What is your favorite color? ". i'm

in the first step, i am suppose to type the question? or type answer to the question?

using_input.py
favorite_color = input( "my favorite color is blue?")
Christian Clarke
Christian Clarke
7,963 Points

looks like you're supposed to type the question

mohan Abdul
mohan Abdul
Pro Student 1,453 Points

hi Christian Clarke, the thing is i am stuck if i write out the first question '''favorite_color = input ("what is your favorite color?")'''

but how do i answer the prompt? in the video the teacher inputs the the variable and prompt on text editor and the answers it in the console. In the coding challenge i have no console to repond to the prompt.

mohan Abdul
mohan Abdul
Pro Student 1,453 Points

Christian Clarke if you are to go to the thread above this one i have tried it like this-

'''favorite_color = input("what is your favorite color?") purple print("the color", favorite_color, "is a great color!")'''

i also deleted the 2nd line and line 1 and 3 remained.

1 Answer

Christian Clarke
Christian Clarke
7,963 Points

You should be fine if you do

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

This challenge isn't one where you're supposed to actually answer the the prompt it just wants to make sure you understand the mechanics of how the input method works if you were to actually use it.