Tell us what’s happening:
I can’t get past this, I have been trying for a few days, I have all steps bar step 15 when distance_mi is a false value, the program should print false…
this is. my code
//distance_mi = 7
//is_raining = False
//has_bike = True
//has_car = False
//has_ride_share_app = False
//if distance_mi <= 1 and not is_raining:
//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)
//else:
//print(False)
Your code so far
distance_mi = 7
is_raining = False
has_bike = True
has_car = False
has_ride_share_app = False
if distance_mi <= 1 and not is_raining:
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)
else:
print(False)
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Safari/605.1.15
Challenge Information:
Build a Travel Weather Planner - Build a Travel Weather Planner