Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

Please help me, I don’t really understand what I should do right now. I’m stuck on questions 20,21 and 22. I’ve reviewed and tried them repeatedly for hours. Have I made a lot of mistakes, and does this mean I’m not suited to learn coding because I can’t solve them? Please help me.

Your code so far

distance_mi = 5
is_raining = True
has_bike = True
has_car = True
has_ride_share_app = True 

if not distance_mi:
    print(False)

elif distance_mi <= 1 and is_raining == False:
    print(True)
else:
    print(False)
    if distance_mi >= 1 and distance_mi <= 6 and is_raining == True and has_bike == True:
        print(False)
if distance_mi >= 1 and distance_mi <= 6 and has_bike == True and is_raining == True:
        print(True)

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

Welcome to the forum @unknown111!

Heck no; we all make mistakes and eventually, we learn how to debug so we can locate and correct our mistakes.

For this challenge, please organize your code so it prints only one thing. (Currently, I see three things printed in the console.) Then test with different variable values to see if your code is going where you expect it to. You can add more prints (like print("in <= 1 no rain")) if you need to debug further.

I also recommend reviewing all the user stories again to make sure you are meeting those requirements.

Happy coding!

Finally, I managed to do it after two days of doing the same thing for hours. I am not very attentive to the instructions given, and that is my biggest mistake.You really helped me, and that made me more confident. Thank you.