Tell us what’s happening:
Yo big Dhess
I need some help rn it would be very appreciated
Thankyou from
Dylan
Your code so far
distance_mi = 69
is_raining = True
has_bike = False
has_car = True
has_ride_share_app = False
if distance_mi == False:
print("False")
elif distance_mi <= 1:
if is_raining == False:
print("True")
elif distance_mi <= 1 and is_raining == True:
print("False")
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.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
dhess
2
Hi @dylan.kanakri,
It looks like you still need to finish implementing all of the user stories.
A couple of things to consider:
- Organize your code so it only prints only thing — either True or False.
- You can make use of the and/or operators in your conditions.
And here is a good resource for understanding falsy value:
Happy coding
Thankyou Dhess I really appreciate it, I will ask for more help if I need it.
Have a great day!