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 trialJay Albi
2,665 PointsIssue with Creating Variables (2/2) and solution
In challenge 2/2, Treehouse needs to clarify that you need to use the combination of strings, commas, spaces and variables together to get the answer just the way they ask.
The instructions are actually confusing new users because, as beginners, people will think you literally have to type the instructions word for word. Yes, it is a "challenge," but remind students to use what they've learned to print out the result.
Btw, the answer is:
favorite_color = "red"
print("The color " , favorite_color , " is my favorite!)
Note that I left a space at the end and beginning of the quotes to leave spaces between the word red. I was only able to solve this because I've taken lessons before. Treehouse needs to clarify this.
Jazmin T
Courses Plus Student 234 PointsI agree with you on being specific... on this same course we were told to save but not constantly save & that took me 2 hours to figure out and many many downloads of different browsers. I just remind myself that the video said were going to make mistakes lol freaking 2 hour mistake but whatever.
1 Answer
Steven Parker
231,268 PointsThere's not just one "answer" to this challenge, and in fact there are several different ways to achieve the same result. The important thing is to construct an output that looks like the sample, spacing and all.
If you really think there's something wrong with the course itself, you can always report it to the Support staff. They do make changes when they agree it's a bug, and hand out "Exterminator" badges to the finder.
Pawel Jaworski
Courses Plus Student 158 PointsPawel Jaworski
Courses Plus Student 158 PointsYour answer is wrong, unfortunately. here's the correct one:
favorite_color = "red"
print("The color" , favorite_color , "is my favorite!")
You missed the final quotation mark.
Don't confuse people..especially if you have taken lessons before :) Best regards