Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

The only error I can’t pass is #15: “When distance_mi is a falsy value, the program should print False.” How do i fix this error?

Your code so far

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

if distance_mi <= 1:
    if is_raining == False:
        print('True')
    else:
        print('False')
elif distance_mi > 1 and distance_mi <= 6:
    if has_bike == True and is_raining == False:
        print('True')
    else:
       print('False')
elif distance_mi > 6:
    if has_car or has_ride_share_app:
        print('True')
    else:
        print('False')

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:151.0) Gecko/20100101 Firefox/151.0

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

Welcome to the forum @hampter.cpp,

Currently, you don’t have any code that checks for a falsy value. Perhaps this reference can help:

Happy coding