Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

hint no.15 is not understandable, I don’t know if it means any thing like you should have a line that says your assigned value of the variable distance_mi is not true or anything else

Your code so far

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

if distance_mi <= 1 and not is_raining:
    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)
else:
    print(False)

Your browser information:

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

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

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

if distance_mi:
    if distance_mi <= 1 and not is_raining:
        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)
    else:
        print(False)
else:
    print(False)

Welcome back, @gowtham1852512 ,

I went ahead and combined your posts for you. In the future, just reply to the original thread to add further updates.

Happy coding!

You might find this reference helpful: