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

The color [YOUR FAVORITE COLOR] is my favorite color! how do i tackle this question I seem to be doing the wrong thing

using_variables.py
favorite_color = ("blue")
print=("The color", favorite_color, "is my favorite!")

1 Answer

Krishna Desai
Krishna Desai
7,977 Points

It looks like there are several issues here.

You're assigning a set, not a string, to favorite_color. I believe in this example, you're supposed to assign a string.

print is a function and not an instance variable. Functions are called as function() where function is the name of the function.

assist how i go about that it seems like im on the right track till it types syntex error