Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

I have passed every requirement except for the final one: When the distance is greater than 6 miles and no car nor a ride share app is available, the program should print False.

I have tested my code with every true/false combo and with miles from 1-7 and it always produces the correct answer. I do not understand what I’m missing

Your code so far

distance_mi = 7
is_raining = False
has_bike = False
has_car = False
has_ride_share_app = False
if distance_mi == 0:
    print('False')
elif distance_mi <= 1 and not is_raining:
    print('True')
elif distance_mi > 1 and has_bike and not is_raining:
    print('True')
elif distance_mi > 6 and (has_car or has_ride_share_app):
    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/144.0.0.0 Safari/537.36

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

Try this:

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

if the distance is 7 miles, which is going to be True first? distance_mi > 1 is True with 7, is that what you want?