Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

I am new to Python and this prompt has me stuck. Any advice is appreciated.

Your code so far

distance_mi = 3
is_raining = True
has_bike = True
has_car = True
has_ride_share_app = True

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


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/18.6 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

Welcome to the forum @badgalrere

Assign 0 to distance_mi, and False to is_raining

Only one line should appear in the console.

Happy coding

You should check your conditions if they really make sense! BTW: To check if a variable is false, you should use the not operator.