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 trialALBERTO GRAJEDA
Courses Plus Student 139 PointsHow do I do the 2nd step to this Challenge Task?
Why is it incorrect even when I go back to watch the video again to review the topic?
print('favorite_color') = "orange"
"The color favorite_color is my favorite!"
1 Answer
Gav Cooper
4,261 PointsIt looks like you're getting a bit confused over the syntax for variables here.
You're right that the color you've chosen should be wrapped in quotes, but you need to drop the print() around your variable name, so the first bit should look like
favorite_color = "orange"
The next part of the challenge is where you need to use the print() function to create a string that includes your favorite_color variable. You almost have the right idea here, but you shouldn't have the variable name inside the quotes, so the second part should look like
print("The color ", favorite_color, " is my favorite!")