Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

I am almost finished but cannot work otu is wrong with questions 17, 18 and 19.

i have structured it in the same way as all others and yet is won’t seem to register. I am not sure where i am going wrong?!

Your code so far

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

if distance_mi:
    pass

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



Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) 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

If distance_mi = 0 and is_raining = False, should your code return True?

Hi there, my mistake, the boxes i cannot seem to check are:

18 - When the distance is between 1 mile (excluded) and 6 miles (included), and it is raining with no bike, the program should print False.

19 - When the distance is between 1 mile (excluded) and 6 miles (included), it is not raining but no bike is available, the program should print False.

20 - When the distance is between 1 mile (excluded) and 6 miles (included), a bike is available, and it is not raining, the program should print True.

everything else is in working order

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.