Tell us what’s happening:
The instructions is “if the distance is greater than 6 miles:
you should print “True” if the person has a car or has a ride-share app,
otherwise, you should print “False”.”
I don’t know where I’m wrong. Can anyone help explain?
Your code so far
distance_mi = 8
is_raining = False
has_bike = False
has_car = True
has_ride_share_app = False
if not distance_mi:
print("False")
if distance_mi <= 1 and not is_raining:
print("True")
elif (distance_mi > 1 or distance_mi <= 6) and not is_raining and has_bike:
print("True")
elif distance_mi > 6 and (not has_car or not has_ride_share_app):
print("True")
else:
print("False")
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0
Challenge Information:
Build a Travel Weather Planner - Build a Travel Weather Planner