Tell us what’s happening:
I don’t know what’s wrong with my code, if someone could nudge me in the right direction it would be great.
Your code so far
distance_mi = 8
is_raining = True
has_bike = True
has_car = False
has_ride_share_app = True
if not distance_mi:
print(False)
elif distance_mi <= 1:
if not is_raining:
print(True)
else:
print(False)
elif distance_mi > 1 and distance_mi >= 6:
if has_bike and not is_raining:
print(True)
else:
print(False)
elif distance_mi > 6:
if has_car or has_ride_share_app:
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.6.2 Safari/605.1.15
Challenge Information:
Build a Travel Weather Planner - Build a Travel Weather Planner