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


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:
 elif days >= 3:
 return costs


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


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.