Tell us what’s happening:
I am only failing test# 15, thought i addressed it with the following code:
if bool(distance_mi) == False:
print(False
# declare variables
distance_mi = 9
is_raining = False
has_bike = True
has_car = True
has_ride_share_app = True
#------------------------------ boolean conditions
if bool(distance_mi) == Falsw:
print(false)
if distance_mi <= 1:
if not is_raining:
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)
```
Your code so far
# declare variables
distance_mi = 9
is_raining = False
has_bike = True
has_car = True
has_ride_share_app = True
#------------------------------ boolean conditions
if not bool(distance_mi) == True:
print(false)
if distance_mi <= 1:
if not is_raining:
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)
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.5 Safari/605.1.15
Challenge Information:
Build a Travel Weather Planner - Build a Travel Weather Planner