Tell us what’s happening:
Why there is no response: When the distance is greater than 6 miles and no car or carpooling application is available, the program should print False.
Your code so far
distance_mi = 7
is_raining = True
has_bike = True
has_car = True
has_ride_share_app = True
if distance_mi <= 0 :
print ('False')
elif distance_mi <= 1 and not is_raining :
print ("True")
elif (distance_mi > 1 or 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 (Linux; Android 16; 23113RKC6C Build/BP2A.250605.031.A3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.7499.192 Mobile Safari/537.36
Challenge Information:
Build a Travel Weather Planner - Build a Travel Weather Planner