Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

Instructions 18 and 23. I tried several times but nothing works.
Can someone see the problem??
Thank you

Your code so far

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

if not distance_mi:
    print(False)
elif distance_mi <= 1 and not is_raining:
    print('True')
elif distance_mi > 1 and distance_mi <= 6 and is_raining == False and has_bike == False:
    print ('False')
elif has_bike == True and not is_raining:
    print('True')
elif distance_mi > 6:
    if has_car or has_ride_share_app:
        print('True') 
    if has_car == False and has_ride_share_app == 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/146.0.0.0 Safari/537.36

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

Welcome to the forum @new_code !

Is this elif statement associated with distance_mi?

Are you using else as asked?

Happy coding!

I’ve solved the problem.

Thankss