Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

I’m certain I wrote everything correctly however the workshop says conditons 20-22 aren’t satisfied, I’ve tried every way I can think of.

Your code so far

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

if distance_mi > 0:
        if distance_mi <= 1 and 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 == True or has_ride_share_app == True:
                print('True')
        else:
                print('False')
else:
        print('False')

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

Welcome to the forum @selina_chen !

If distance_mi is 2 and is_raining is False and has_bike is True, does your code ever get here? Add a print inside that elif to see.

Happy coding!