Tell us what’s happening:
the guide is saying my code doesn’t mee the expectations of step 15 and below ( distance_mi if falsey the terminal woudl says false) it follows all the requiremnts after i tested it and i ran thrugh teh code sevral times but can’t find the problem, can soemone explain to me what i did wrong
Your code so far
distance_mi = 4
is_raining = False
has_bike = True
has_car = False
has_ride_share_app = False
if not(distance_mi):
print('false')
elif distance_mi <= 1 and not(is_raining):
print('true')
elif distance_mi <= 6 and (has_bike and not(is_raining)):
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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36 Edg/149.0.0.0
Challenge Information:
Build a Travel Weather Planner - Build a Travel Weather Planner