i tried reviewing it making some adjustment to the value of the distance and the bool, it still not passing the code, it seems am missing the logic needed to apply for the code to pass, please help
distance_mi = 9
is_raining = False
has_bike = False
has_car = True
has_ride_share_app = True
if not distance_mi:
print('False')
elif distance_mi <= 1 and not is_raining:
print('True')
elif distance_mi > 1 and distance_mi <= 6 and (not is_raining and has_bike):
print('True')
elif (distance_mi > 6 and has_car) or (has_ride_share_app):
print('True')
else:
print('False')
Please review your placement of parentheses here. What you have there is how the conditions will be evaluated without parentheses since the expressions on each side of the and operator would be evaluated first.
Does it make sense to evaluate has_ride_share_app without any consideration of the value of distance_mi?