Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

very new to coding and unsure of how to adjust my variables and still still satisfy the conditions. any help would be very much appreciated. need help for conditions 15 onward. Thank you

Your code so far

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

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




Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.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

Hi @A.peezy300,

Please organize your code so only one value is printed to the console – either True or False. Currently, your code is showing three False values in the console.

You should use if, elif, and else statements to evaluate the distance categories in ascending order.

Try using all of the above statements in your code and make sure each of your conditions evaluates distance_mi.

Happy coding