Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

why is it keep saying i haven’t finished the step when i finish but when i was starting the step got ticked as done

Your code so far

distance_mi = 10
is_raining = True
has_bike = True
has_car = True
has_ride_share_app = True

if  distance_mi == 0.0 or distance_mi == 0 or distance_mi == "":
    print(False)
elif has_ride_share_app:
    print()

if has_ride_share_app:
    print("")
elif has_car:
    print("")
else:
    print("")


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

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

if distance_mi > 1 and distance_mi <=6 and is_raining and has_bike == False:
    print(False)

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

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

if distance_mi >6 and has_ride_share_app:
    print(True)

if distance_mi > 6 and has_car:
    print(True)

if distance_mi > 6 and not has_car and not has_ride_share_app:
    print(False)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.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

Welcome to the forum @dimmorrydisaster,

There are three basic things you need to focus on:

  • Make sure you follow the directions in User Story #3, then implement User Stories #4-11 in order
  • Organize your code so it prints only one thing in the console – either True or False.
  • Adjust your code to return False if distance_mi is falsy (see link below).

JS: Falsy - Glossary | MDN

Happy coding

When distance_mi is a falsy value, the program should print False.

This solution doesn’t pass the requirement.
And your conditional logic seems a bit complex.
Please check this code that passed all.

code removed by moderator

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.