Construye un planificador de clima para viajes. - Build a Travel Weather Planner

Cuéntanos qué está pasando:

I have problems with the instructions. I can’t understand why. I was only able to complete the numbers 1 to 14 and 21 to 23. I think my code is correct . What do I need to change?

Tu código hasta el momento

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

if not bool(distance_mi):
    print (False) 
    
if distance_mi <= 1 and not is_raining:
    print(True)

elif distance_mi <=1 and is_raining == True:
    print(False)

if 1 < distance_mi <= 6 and (not has_bike and is_raining):
    print(False)
elif 1 < distance_mi <= 6 and (not has_bike and not is_raining):
    print(False)
elif 1 < distance_mi <=6 and  (has_bike and not is_raining):
    print(True)

if distance_mi > 6 and (has_car or has_ride_share_app):
    print(True)
else:
    print(False)

Información de tu navegador:

El agente de usuario es: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36 OPR/131.0.0.0

Información del Desafío:

Construye un planificador de clima para viajes. - Build a Travel Weather Planner

GitHub Link: i18n-curriculum/curriculum/challenges/espanol/blocks/lab-travel-weather-planner/694acade1d4afdbce71e5840.md at main · freeCodeCamp/i18n-curriculum · GitHub

Welcome to the forum @fabrizioomarcancino

image

Only one line of output should appear in the console.

Happy coding

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.