Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

Hello I have been staring at this lab for far too long and I do not know what I am doing wrong. I was able to go all the False print test to come through but for some reason I am unable to get the True print tests to come through to help me pass this lab. Any help is appreciated. Thank you in advance.

Your code so far

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

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Safari/605.1.15

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

you are missing a condition… what does your code do with falsy distance_mi values?

remember that 0 is falsy (but it’s not the only falsy one)

also

do you want to print(False) for what value of is_raining?

That is the issue I was stuck on before. I have checked my notes on falsy values but I still don’t understand what that means.

a falsy value is a value that behaves like False in a boolean contest. For example, you can have any value in an if condition, like

if <value>:
    print("truthy!")
else:
    print("falsy!")

values like 0, empty strings, and other falsy values, will go to the else