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 Types and Branching Use an if

Sandra-Lee Rowe
Sandra-Lee Rowe
3,637 Points

i need help

cant get this one right

branching.py
favorite_color = input("What is your favorite color?  ")

1 Answer

Steven Parker
Steven Parker
241,007 Points

It doesn't look like you've added any code yet. Give it your best shot, and if it doesn't work, show us what you tried and we can help you with it from there.

For this task, add a branch that checks if the favorite_color is equal to "blue". If it is indeed "blue" print out to the screen, "You must love the sky!"