Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

I seem to be stuck on challenge 15, it brings up ‘When distance_mi is a falsy value, the program should print False’

Your code so far

distance_mi = 10
is_raining = True
has_bike = False
has_car = True
has_ride_share_app = True 
no_car = False
no_ride_share_app = False


if distance_mi >= 6 :
    print('True')

elif has_ride_share_app and has_car:
    print('True')

elif distance_mi == False:
    print('False' )


 
    



      



Your browser information:

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

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

Github Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-travel-weather-planner/694acade1d4afdbce71e5840.md at main · freeCodeCamp/freeCodeCamp · GitHub

are you sure that with this you are catching all falsy values? you may want to review about falsy values

Hi @peter7moe,

You may want to review this theory lecture:
Booleans and Conditionals - What Are Truthy and Falsy Values, and How Do Boolean Operators and Short-Circuiting Work? | Learn | freeCodeCamp.org

Happy coding!