Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

As soon as I add in the second bit of code the check if distance_mi equals False turns wrong. But if I remove the second bit it turns correct again. I don’t know why this is happening, please help.

Your code so far

distance_mi = 6
is_raining = True
has_bike = True
has_car = False
has_ride_share_app = True

if  distance_mi == False:
    print(False)


if distance_mi <= 1 and is_raining == False:
    print(True)
else:
    print(False)



Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

Welcome to the forum @timmyey !

Your code should only print one thing if distance_mi is 0.

Happy coding!