Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

I am s tuck in test no. 18. I tried my best to get it done but I couldn’t. can someone help me to find the mistake I am making in this code

Your code so far

distance_mi = 7
is_raining = False
has_bike = True
has_car = False
has_ride_share_app = True

if not distance_mi :
    print('False')
elif distance_mi <= 1 and is_raining :
    print('False')
else :
    print('True')

if distance_mi > 1 and distance_mi <=6 :
    if is_raining and has_bike == False:
        print('False')




    



Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36 Edg/151.0.0.0

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-travel-weather-planner/694acade1d4afdbce71e5840.md at main · freeCodeCamp/freeCodeCamp · GitHub

consider, if this is true

this is anyway going to run, right?

so that means you end with two things printed

make sure to only print always only one thing

I didn’t get you , can you make it clear to me

You need to always print one thing only, remember that when you have else something always run

so you print two things sometimes: