Tell us what’s happening:
I initially had the falsy issue. I changed it to an if and else and pushing the nested if/elif/else statement. I am not getting 'Your code has an indentation error. You may need to add [pass] on a new line to form a valid block of code. I’m not sure what that means. I’m obviously still a beginner and I even searched it on google. I tried my code in Collab and it worked so what is expected on here. Please, need assistance. Thank you
Your code so far
distance_mi = 5
is_raining = False
has_bike = False
has_car = False
has_ride_share_app = False
if distance_mi == 0:
print ('False')
else:
if distance_mi <= 1 and not is_raining:
print ('True')
else:
print ('False')
if 1 < distance_mi <= 6 and has_bike and is_raining:
print ('True')
else:
print ('False')
if distance_mi > 6 and has_car or has_ride_share_app:
print('True')
else:
print('False')
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.3 Safari/605.1.15
Challenge Information:
Build a Travel Weather Planner - Build a Travel Weather Planner