Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Python Basics Meet Python Using Input

Can someone please tell what I'm missing?

Im lost asf.

using_input.py
input('What is your favorite color?    ')
favorite_color = 'Red'
Red = 'Mauve'
print('The color', favorite_color,' is a great color')

3 Answers

Hey! You should set What is returned from the input functiom to a 'favourite_color' variable. (so remove those two middle lines of code) other than that it looks good.

But the favorite_color variable has to be red. But he inputs "Mauve" this is making me go insane!!!!!

Grigorij Schleifer
Grigorij Schleifer
10,363 Points

Hi Jahmad, You will get there! Just stick to it ...

This code will work for the challenge. Why do you think the color needs to be red? The challenge interpreter doesnt let you type anything so it is confusing doing this challenge. But you need to amagine that someone will type his/her favorite color or name and it will be displayed back. Does it resolved at least some of your confusion? :smile:

# users input will be stored in the variable favorite_color
favorite_color = input("What is your favorite color? ")

# inside the print statement whatever the user typed in will be displayed 
print("The color", favorite_color, "is a great color!")

Don`t hesitate to ask again if something is sill not clear.