Tell us what’s happening:
I’m stuck on getting Test 17 and 18 checks for “Build a Travel Weather Planner”. I’ve revised my code a few times and that resulted in more test failing. Unsure why 17 and 18 are failing, its probably just an oversight on my part.
Your code so far
distance_mi = 3
is_raining = False
has_bike = True
has_car = True
has_ride_share_app = False
if distance_mi == False:
print('False')
if distance_mi <= 1 and is_raining == False:
print('True')
elif 1 < distance_mi <= 6 and has_bike == True and is_raining == False:
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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Challenge Information:
Build a Travel Weather Planner - Build a Travel Weather Planner