Build a Travel Weather Planner

I’ve tried and being stuck with test 18 and 19, plz guide me:

distance_mi = 7

is_raining = False

has_bike = True

has_car = False

has_ride_share_app = False

if distance_mi:

if distance_mi <= 1 and is_raining == False:

    print('True')

elif distance_mi > 1 and distance_mi <= 6 and is_raining == False and has_bike == True:

    print('True')

elif has_car == True or has_ride_share_app == True :

    print('True')

else:

    print('False')

else:

print('False')

The difference between is that 18 it is when it is raining and 19 is when it is not raining. for 18 the code should be: removed by moderator

Can you tell me what code you wrote to try to complete 18 and 19?

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

yes, thanks to your advices. I’ll keep it in mind for the next time.

thank you for your guidence. I finally complete it.