Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

distance_mi = 1.5
is_raining = True
has_bike = True
has_car = True
has_ride_share_app = True

if distance_mi <= 1 and 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)

I am stuck on line 15 and 16

Your code so far

distance_mi = 1.5
is_raining = True
has_bike = True
has_car = True
has_ride_share_app = True

if distance_mi <= 1 and 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 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

When the distance is 1 mile or less and it is not raining, the program should print True .

is your code doing this?