Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

I have satisfied all criteria except 18/19. Please help me to see what I am missing here!

Your code so far

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

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


    

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36

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

Welcome to the forum @thewoodsmith,

If the distance is greater than 6 miles:

Please check this code against the above instruction.

Do you even need the above code?

Happy coding

I guess I did not need that bit of code. Thank you for the tips. I have success!

I’ve changed the category of your topic to better reflect its content.