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!
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
what does that mean ERROR: test_variable_gets_set (__main__.TestCreateAVariableExecution)
my.py favorite_color = "Red" print(favorite_color) python my.py
Steven Parker228,025 Points
I'm not sure what that error means, and I wasn't able to replicate it. But here are some issues relative to the challenge:
my.py # <-- this is not a Python statement favorite_color = "Red" print(favorite_color) python my.py # <-- this is also not a Python statement
Then, after removing the non-Python lines, the code for task 2 isn't complete yet. This code will print the color itself, but the challenge instructions say to print "The color
[YOUR FAVORITE COLOR] is my favorite!". So you need to build up and print this larger string that includes the color as part of it.
Okay I'm getting errors
favorite_color = "Red" print("red,"," is my favorite!")
Thanks, man I finally got it right