Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

prompt 15 in the test just won’t pass. kindly assist

Your code so far

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

if not distance_mi:
    print(False)

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

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

Your browser information:

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

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

Welcome to the forum @j_w_m !

What do you see in the console if distance_mi is 0?

Happy coding!

Hello!
I’ve set it to 0 and the console output showed two False values.

Please organize your code so that only one thing prints.

The code has passed. Thank you!