Python, Build a Travel Weather Planner

This code gives all ticks apart from No.23 in the tests. Any help would be welcome.


distance_mi = 0
is_raining = False
has_bike = True
has_car = True
has_ride_share_app = True
if distance_mi == False:
print(‘False’)
elif distance_mi <= 1 and not is_raining == True:
print(‘True’)
elif distance_mi <= 1 and not is_raining == False:
print(‘False’)
elif distance_mi > 1 and distance_mi <= 6 and has_bike == False and not is_raining == False:
print(‘False’)
elif distance_mi > 1 and distance_mi <= 6 and is_raining == False and has_bike == False:
print(‘False’)
elif distance_mi > 1 and distance_mi <=6 and has_bike == True and is_raining == False:
print(‘True’)
elif distance_mi >= 1 and is_raining == True and has_bike == False:
print(‘True’)
elif distance_mi > 6 and has_ride_share_app == False:
print(‘True’)
elif distance_mi > 6 and has_car == True:
print(‘True’)
elif distance_mi > 6 and has_car == False and has_ride_share_app == False:
print(‘False’)
elif distance_mi > 6 and has_ride_share_app == True:
print(‘True’)
else:
print(‘False’)

I put the 3 ticks before the code but they are not showing?

Welcome to the forum @Superzaxxon!

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

Happy coding!