Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialmohan Abdul
Courses Plus Student 1,453 Pointspython 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?
favorite_color = input( "my favorite color is blue?")
mohan Abdul
Courses Plus Student 1,453 Pointshi 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
Courses Plus Student 1,453 PointsChristian 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
7,963 PointsYou 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.
Christian Clarke
7,963 PointsChristian Clarke
7,963 Pointslooks like you're supposed to type the question