Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

I’m stuck in the 15 step
When distance_mi is a falsy value, the program should print False.

Your code so far

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

if bool(distance_mi)==False:
    print('False')

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

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

I see in the terminal

False
True
True
True

that’s a bit more than False, maybe you need to review your code so that it doesn’t print so many things

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.