Tell us what’s happening:
i am not able to pass test 15 i tried doing else, even not elif
Your code so far
distance_mi= 1
is_raining=False
has_bike= True
has_car= False
has_ride_share_app= True
if (distance_mi <= 1):
if is_raining==False:
print("True")
else:
print("False")
elif distance_mi> 1 and distance_mi<=6:
if has_bike and is_raining==False:
print("True")
else:
print("False")
elif distance_mi>6:
if has_car or has_ride_share_app:
print("True")
else:
print("False")
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/151.0.0.0 Safari/537.36
Challenge Information:
Build a Travel Weather Planner - Build a Travel Weather Planner