Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

Please help check where my code is wrong , I’ve tried following the instructions and it keeps saying “When the distance_mi is a falsy value, the program should print False”.

Your code so far

distance_mi = 8
is_raining = False
has_bike = True
has_car = True
has_ride_share_app = True
if is_raining:
    print('Request a ride ')
elif is_raining and has_car:
    print('No need for a ride request')
if distance_mi == 0:
    print('False')
if distance_mi <= 1:
    print('True')
if 1 < distance_mi <= 6 and has_bike and not is_raining:
    print('True')
if distance_mi > 6:
    print('True')

  


Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

I tried setting distance_mi = 0 for testing

and now in the terminal I see

False
True

if the tests ask only for False, maybe having more than that printed is tripping the tests up, don’t you think?

Thank you, I managed to fix that part.

awesome! if you need more help please share your updated code