Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:
Describe your issue in detail here.

I have tried everything concerning this particular place it’s rejecting my code.

Your code so far

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

Your mobile information:

OPPO A83t - Android 7.1.1 - Android SDK 25

Challenge: Build a Travel Weather Planner - Build a Travel Weather Planner

Link to the challenge:

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Hi @Fernado1,

If distance_mi is 7 and is_raining is True, does it make sense that this should be True?

Happy coding!

When you are using the or operator , it takes one of the value that is truthy and prints out true even if the other value is falsy , that’s why it’s true and the integar is 1 not 7.

Thanks :+1: