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


2 Answers

Eric M
Eric M
11,545 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!