Build a Travel Weather Planner - Build a Travel Weather Planner

Tell us what’s happening:

Really Struggling with this and a little unsure what’s wrong, I’ve run it on an online code checker and it seems to run fine. Any help would be greatly appreciated. Feeling pretty dumb right now.

Your code so far

distance_mi = 6
is_raining = True

#code
if distance_mi <=1 and is_raining == False:
  print('True')
else:
  print('False')

#Commute with Bike
has_bike = True
if distance_mi ==1 <= 6 and is_raining == True and has_bike == False:
  print('False')
elif distance_mi ==1 <= 6 and is_raining == True and has_bike ==False:
  print('False')
elif distance_mi ==1 <= 6 and is_raining == False and has_bike ==False:    
  print('False')
elif distance_mi ==1 <= 6 and is_raining == False and has_bike ==True:    
  print('True')

#Commute with Car/App
has_car = False
has_ride_share_app = False
if distance_mi >6 and has_ride_share_app==True:
  print('True')
elif distance_mi >6 and has_ride_share_app==False and has_car==False:
  print('False')
elif distance_mi >6 and has_ride_share_app==False or has_car==True:
  print('True')

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36 Edg/144.0.0.0

Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

what are you trying to write here?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.