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

i dont understand. it i am stuck here input("what is your favorite_color") print( favorite_color, " is my favorite!")

using_input.py
input("what is your favorite_color")
print( favorite_color, " is my favorite!")

2 Answers

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Hey luca modesti 👋

Looks like your code isn't quite passing the first Task anymore. You'll want to make sure to store the result of the input in a variable. This variable will then be used in the second task.

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

For the second task your print function looks good, you'll just want to format it exactly as requested by the challenge in order to pass it 🙂

The color [USER INPUTTED COLOR] is a great color!

Hope this helps! 😄

thank you it helps!