Hi everyone,

I am troubling with the following,

it said that **raised an error: sum expected at most 2 arguments, got 3**

I would like to know how to fix it > <

Thanks a lot!

**raised an error: sum expected at most 2 arguments, got 3**

```
"""1st component"""
def hotel_cost(nights):
return 140 * nights
"""2ed component"""
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
"""3rd component"""
def rental_car_cost(days):
cost = 40 * days
if days >= 7:
cost -= 50
elif days >= 3:
cost -= 20
return cost
"""combination"""
def trip_cost(city,days):
return sum(plane_ride_cost(city),rental_car_cost(days),hotel_cost(days))
```