Taking A Vaction (calculating rental car cost)


#1



https://www.codecademy.com/courses/python-beginner-P5YtY/1/3?curriculum_id=4f89dab3d788890003000096

It's asking if I created a function called rental_car_cost, which I did,


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 retal_car_cost(days):
    cost = 40*day
    if days >= 7:
        cost -= 50
        return cost
    elif days >= 3:
        cost -= 20
        return cost


#2

you forgot n in rental


#3

actually I realized I misspelled something then corrected the return part. Sorry!!