Tell us what’s happening:
Hello, everyone. Could anyone please help me to solve this? There are only 4 required topics left for me to complete this lab activity, but I really don’t understand what I’m doind wrong. Need help with 16, 20. 21 and 22. Thank y’all
Your code so far
distance_mi = 1
isinstance(distance_mi, int)
is_raining = False
has_bike = True
has_car = True
has_ride_share_app = True
if distance_mi != True:
print(bool(False))
elif distance_mi <= 1:
if is_raining == True:
print(bool(False))
else:
print(bool(True))
elif 6 >= distance_mi > 1:
if is_raining == False and has_bike == False:
print(bool(False))
elif is_raining == False and has_bike == True:
print(bool(True))
elif distance_mi > 6:
if has_ride_share_app == True or has_car:
print(bool(True))
else:
print(bool(False))
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36
Challenge Information:
Build a Travel Weather Planner - Build a Travel Weather Planner