Build a Travel Weather Planner

distance_mi = 10

is_raining = False

has_bike = True

has_car = False

has_ride_share_app = True




if distance_mi == 0:

    print(False)

elif distance_mi <= 1:

    if not is_raining:

        print(True)

    else:

        print(False)

elif distance_mi > 1 <= 6:

    if has_bike and not is_raining:

        print(True)

    else:

        print(False)

elif distance_mi > 6:

    if has_car or has_ride_share_app:

        print(True)

    else:

        print(False)   

else:

    print(True)

My code is above I feel likes everything is okay, but I am getting this issue below. what I am I missing? please help.
When the distance is greater than 6 miles and a ride share app is available, the program should print True.


Welcome to the forum @JOEL8,

Your issue is here.


In the future, if you have a question about a specific challenge as it relates to your written code for that challenge and need some help, please click the Help button located on the challenge.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

Happy coding