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 Create a Variable

I don't know what this question is asking. "Where [YOUR FAVORITE COLOR] is using the variable you created in Task 1."

Can someone help me here I can't move on.

using_variables.py

2 Answers

Eric M
Eric M
11,515 Points

Hi Gerald,

In task 1 you created a variable along the lines of:

favorite_color = "green"

Part 2 wants you to insert that color name string that you stored in the favorite_color variable into another string "The color [YOUR FAVORITE COLOR] is my favorite!" and print it out to the screen.

So in my example here, where I've assigned "green" to favourite_color, to pass the challenge I would need to use python to insert green into the printed string, to read: "The color green is my favorite!".

Thank you so much!