Tell us what’s happening:
Your code so far
distance_mi = 7
int(distance_mi)
is_raining= False
has_bike = True
has_car = False
has_ride_share_app = False
if distance_mi:
if distance_mi <= 1:
if is_raining != True:
print('True')
else:
print('False')
elif (distance_mi > 1 or distance_mi <= 6):
if has_bike and is_raining != True:
print('True')
else:
print('False')
elif distance_mi > 6:
if has_car != True:
print('False')
elif has_ride_share_app != True:
print('False')
else:
print('True')
else:
print('False')
I’m meeting all the criteria save for the last three. Thing is, it says I managed to meet “Distances greater than 6 miles: Car Available?” As you can see, there’s nothing there, so I’m somehow glitching the testing or something.
Build a Travel Weather Planner: Build a Travel Weather Planner | freeCodeCamp.org Lesson URL (copy - paste from your browser’s address bar)