Tell us what’s happening:
I have satisfied all criteria except 18/19. Please help me to see what I am missing here!
Your code so far
distance_mi = 0.5
is_raining = True
has_bike = False
has_car = False
has_ride_share_app = True
if distance_mi == False:
print(False)
else:
if distance_mi <= 1 and is_raining == False :
print(True)
elif (distance_mi > 1 and 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)
elif distance_mi >1 and distance_mi <= 6:
if is_raining or not has_bike:
print(False)
elif not is_raining and not has_bike:
print(False)
elif has_bike 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/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Challenge Information:
Build a Travel Weather Planner - Build a Travel Weather Planner