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

Python Python Basics Meet Python Create a Variable

Robert Rydlewski
Robert Rydlewski
3,828 Points

the qestion is not clear ?? What you want me do ??

favorite_color = "blue"
print("The color" favorite_color "is my favortie!" ) 

1 Answer

For task 2 you are to print the given text combined with the variable from task 1. In your case the output should be:

"The color blue is my favorite!"

There are a couple ways to do this. One is the print function allows you to specify multiple strings separated by commas and the output will be the strings joined with spaces in between. For example:

print("Hello", "Python", "World!")

will print:

"Hello Python World!"

Just remember to use your variable and check your spelling of favorite.