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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Omar Salim](https://secure.gravatar.com/avatar/7f3dfc2bcc2a5be5be68ec5b5bd2a8a5?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Omar Salim
150 PointsWhy is this wrong?
favorite_color = input(" what is your favorite color?")
favorite_color = "Blue"
print("The color", Blue , " is a great color!")
3 Answers
![Rick Gleitz](https://uploads.teamtreehouse.com/production/profile-photos/10566072/micro_highres_446837619.jpg)
Rick Gleitz
47,836 PointsHi Omar,
Just a few problems here.
Your second line is not needed. It redefines the variable favorite_color to mean only Blue. You want whatever color the input is to be printed in the statement, not just Blue.
To do that, in the third line replace the word Blue with the variable name, which now contains whatever color was put in, so it will show up in the statement.
Lastly, take out the space before the word 'is' in your print statement. It's not needed and will cause the Treehouse's checking system to throw an error.
(Technically, the statement in the first line should not begin with a space either, and the 'what' should be 'What', but neither of these threw an error. On some challenges such things might do so. It's best to always match what the instructions say exactly).
I hope this helps!
![Wazir Ali](https://secure.gravatar.com/avatar/67064b02051d95579b284268874ef10a?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Wazir Ali
Python Development Techdegree Graduate 17,115 PointsWhat are you trying to do?
![Alan Luo](https://uploads.teamtreehouse.com/production/profile-photos/11702152/micro_V_for_vendettax.jpg)
Alan Luo
223 PointsI was confused at the beginning of this question, so I youtube python found different ways to achieve this. favorite_color = input("What is your favorite color\n")
print(f"The color {favorite_color} is a great color!")
Omar Salim
150 PointsOmar Salim
150 PointsThank you so much. I appreciate your help.
Omar Salim
150 PointsOmar Salim
150 PointsThanks . I really appreciate your help.