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 trial

Python Python Basics Meet Python Using Input

Can someone please tell what I'm missing?

Im lost asf.

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,365 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.