Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

When I change the variables, it prints the correct output. But questoins 18 and 19 tell me it’s wrong

Your code so far

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

if not distance_mi:
    print('False')
elif 0 < distance_mi <= 1 and not is_raining:
    print('True')
elif 1 < distance_mi <= 6 and (not is_raining) and has_bike:
    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; rv:148.0) Gecko/20100101 Firefox/148.0

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

has_car or has_ride_share_app are being evaluated separately, not together.

That doesn’t look like it’s the problem. It looks like the problem is on line 11, when distance_mi is between 1 and 6

Sometimes the tests fail because of another issue.

test putting this to True, and see if it makes a different in what happens for 18