Python Python Basics Meet Python Create a Variable

Tatenda Mushaninga
Tatenda Mushaninga
205 Points

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
6,100 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.

Tatenda Mushaninga
Tatenda Mushaninga
205 Points

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