Lesson 4 Someone Pl help .The error says "did you create function called rental car cost


#1

Below is the code.

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

#2

your rental_car_cost function is inside your plan_ride_cost function, which causes the error


#3

This is a very common mistake. The issue here is the function is not properly indented. Correct the indentation for def rental_car_cost and it should work fine.