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
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.