Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

All the steps are working it just doesn’t seem to want to tick?

Your code so far

distance_mi = 1
is_raining = False
has_bike = False
has_car = False
has_ride_share_app = False
if 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')
elif distance_mi <= 1 and not is_raining:
    print('true')
else:
    print('false')

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.2 Safari/605.1.15

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

true and True are not the same thing

you will also want to double check how you are using or

when you have A and B or C, that is going to be executed like (A and B) or C, meaning C is a separate condition

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.