Tell us what’s happening:
Stuck on User Story 16: When the distance is 1 mile or less and it is not raining, the program should print True.
Your code so far
distance_mi = 1
is_raining = False
has_bike = False
has_car = True
has_ride_share_app = False
if not distance_mi:
print(False)
if distance_mi:
if distance_mi <= 1 and is_raining == False:
print(True)
else:
print(False)
if distance_mi > 1 and distance_mi <= 6:
print(True)
elif has_bike == True and is_raining == False:
print(True)
else:
print(False)
if distance_mi > 6:
print(True)
elif has_car or has_ride_share_app == True:
print(True)
else:
print(False)
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) 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