Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

Hola alguien sabe porque me sigue tachando X en la parte 18 y 19 del laboratorio en mi codigo hice lo que me pidio debo cambiar algo o el orden?Apenas soy principiante Muchas gracias por la ayuda quedo atento.

Your code so far

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

elif distance_mi >6 and has_ride_share_app ==True:
    print("True")
elif distance_mi >6 and has_car==True:
    print("True")
elif distance_mi > 6 and has_ride_share_app or has_car==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/146.0.0.0 Safari/537.36

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

Welcome to the forum @pachocan36 !

Check the user stories again. The first thing I see is this:

But the associated user story says:

If the distance is greater than 1 mile and less than or equal to 6 miles :

  • You should print True only if the person has a bike and it is not raining.

Happy coding!