Python Python Basics Types and Branching Use an if

im confused

branching.py
favorite_color = input("What is your favorite color?  ")
if favorite_color is == "Blue"
    print("you must love the sky")

1 Answer

Tonessa Chatten
Tonessa Chatten
1,655 Points

You need to take out "is", change "Blue" to "blue" as Python is case-sensitive, and you're missing a colon after "blue".

favorite_color = input("What is your favorite color? ")
if favorite_color == "blue":
 print("You must love the sky")