Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

what should i do with this statement when distance_mi is falsy program should print false i tried: if not distance_mi:print(False)

Your code so far

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




Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.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

with your code I see

False
False

that is too many lines printed, there must be always only one line printed in the terminal

Welcome to the forum @kareenajethwani!

Why do you think that would not work?

Happy coding!

it is raising error not at terminal but after clicking check your code

It’s not formatted correctly as written here. If you indent the body of the if statement, it should work.