Tell us what’s happening:
The instructions number 23 says that ‘When the distance is greater than 6 miles and no car nor a ride share app is available, the program should print false’ , but i already create the correct code according to the instructions(or maybe not yet) but still didn’t get accepted correctly. Im literally stuck in this part, can anyone help me pointing out what exactly in my code thats wrong?
Your code so far
distance_mi = 12
is_raining = (bool(True))
has_bike = (bool(True))
has_car = (bool(True))
has_ride_share_app = (bool(False))
if not distance_mi :
print(False)
elif distance_mi <= 1 and not is_raining :
print(True)
elif distance_mi <= 1 and is_raining :
print(False)
elif distance_mi > 1 and distance_mi <= 6 and not is_raining and has_bike :
print(True)
elif distance_mi > 1 and distance_mi <= 6 and is_raining and not has_bike :
print(False)
elif distance_mi > 1 and distance_mi <= 6 and not is_raining and not has_bike :
print(False)
elif distance_mi > 6 or has_ride_share_app :
print(True)
elif distance_mi > 6 and not has_car and not has_ride_share_app :
print(False)
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Challenge Information:
Build a Travel Weather Planner - Build a Travel Weather Planner