Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

i am missing something in my code, can you give me a hint on what i am missing?

Your code so far

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





     



Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

For starters, are you ever asked to print “Commuting is possible”?

i have corrected that mistake but the code is still having the error

Here are some debugging steps you can follow. Focus on one test at a time:

  1. Are there any errors or messages in the console?
  2. What is the requirement of the failing test?
  3. Check the related User Story and ensure it’s followed precisely.
  4. What line of code implements this?
  5. What is the result of the code and does it match the requirement? (Write the value of a variable to the console at that point in the code if needed.)

If this does not help you solve the problem, please reply with answers to these questions.