Tell us what’s happening:
In a Travel weather planner lab I have written a code after running it I am getting the message like
running tests
tests completed
True
But it’s not giving me the option to submit this code and move forward…Does it mean there’s problem in the code??
Your code so far
distance_mi=10
is_raining=True
has_bike=False
has_car=True
has_ride_share_app=False
if distance_mi==0:
print("False")
else:
if distance_mi<=1 and is_raining==False:
print("True")
elif distance_mi<=1 and is_raining:
print("False")
if (distance_mi>1 and distance_mi<=6):
if(has_bike==False and is_raining==False):
print("False")
elif has_bike==True and is_raining==False:
print("True")
if distance_mi>6 and is_raining:
if has_ride_share_app==True:
print("True")
elif has_car:
print("True")
else:
print("False")
Your browser information:
User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Mobile Safari/537.36
Challenge Information:
Build a Travel Weather Planner - Build a Travel Weather Planner