Tell us what’s happening:
I’m certain I wrote everything correctly however the workshop says conditons 20-22 aren’t satisfied, I’ve tried every way I can think of.
Your code so far
distance_mi = 8
is_raining = False
has_bike = False
has_car = True
has_ride_share_app = True
if distance_mi > 0:
if distance_mi <= 1 and is_raining == False:
print('True')
else:
print('False')
elif distance_mi > 1 and distance_mi <= 6:
if has_bike == True and is_raining == False:
print('True')
else:
print('False')
elif distance_mi > 6:
if has_car == True or has_ride_share_app == True:
print('True')
else:
print('False')
else:
print('False')
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Challenge Information:
Build a Travel Weather Planner - Build a Travel Weather Planner