Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

I’m pulling errors on 15, 16, 19, and 22. I’ve made changes that have pulled other errors and fixed them, but haven’t been able to get rid of these 4 errors. I’m pretty stuck as to why these are not working. Would appreciate any help, thanks.

Your code so far

distance_mi = 1
is_raining = True
has_bike = True
has_car = True
has_ride_share_app = True

if distance_mi <= 1 and is_raining != True:
    print('True')
elif is_raining == True:
        print('False')

if distance_mi > 1 and distance_mi <= 6 and is_raining != True and has_bike != True:
    print('False')
elif has_bike == True and is_raining != True:
    print('True')

if distance_mi > 6 and has_ride_share_app == True:
    print(True)
elif has_ride_share_app != True and has_car != True:
    print('False')

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

Please organize your code so you are only printing one thing.

Is changing the value of the variables the best way to do that? I’ve tried changing a bit but it just has caused mistakes in different places.

dhess means organizing your if/elif/else so that there aren’t multiple of them, so only one print is run for each combination of the variables at the top, if you try to set the variables as the tests say, and you see more than one thing printed in the terminal you need to work more at it