Help


#1

I don’t know what I’m doing wrong.
Please help.

def hotel_cost(nights):
  return 140 * nights

def plane_ride_cost(city):
  if city == "Charlotte":
  	return 183
  elif city == "Tampa":
  	return 220
  elif city == "Pittsburgh":
  	return 222
  elif city == "Los Angeles":
  	return 475
  
def rental_car_cost(days):
  cost = 40 * days
  if days >= 7:
  	cost -= 50
  elif days >= 3:
  	cost -= 20
   	return cost

#2

when the car is rented for less then 3 days or 7 or more days, cost isn’t returned given you nested the return inside the elif clause


#3

the error says it’s returning as none instead of the correct number of days?


#4

none is default returned by functions, so clearly the cost isn’t properly returned in all cases


#5

I got the code; thanks for your help!


#6