Tell us what’s happening:
Hello everyone,
I’m a beginner, and I’m having some trouble with this code. I’ve already tried rewriting it several times, but I still can’t figure out what I’m doing wrong.
If anyone could take a look and point me in the right direction, I would really appreciate it. Any help or advice would mean a lot.
Thanks in advance!
Your code so far
distance_mi = 7
is_raining = True
has_bike = False
has_car = True
has_ride_share_app = False
if distance_mi <= 1 and is_raining == False :
print('True')
else:
print('False')
if distance_mi > 1 and distance_mi <= 6 and has_bike == True :
print('True')
elif distance_mi > 1 and distance_mi <= 6 and has_bike == True and is_raining == False :
print('True')
else :
print('False')
if distance_mi > 6 and has_car == True or has_ride_share_app == True:
print('True')
else:
print('False')
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36
Challenge Information:
Build a Travel Weather Planner - Build a Travel Weather Planner