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

Does anyone know what I'm doing wrong?

I tried fixing what the program said I did wrong. It said I didn't put in favorite_color so I did that and then It showed up as a syntax error

using_input.py
input ("What is your favorite_color?")

1 Answer

Philip Schultz
Philip Schultz
11,437 Points

Hey, step 1, is asking you to collect the input from the user and store it in a variable.

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

setp 2, is then asking you to use the input in a sentence, like so.

print("The color", favorite_color, "is a great color!")

let me know if you have questions

Thank you! Your help is very appreciated! :D