I don’t know what I am doing wrong here.
This is my code:
def hotel_cost(nights):
return 140*nights
def plane_ride_cost(city):
if city == “Charlotte”:
return 183
elif city == “Pittsburgh”:
return 222
elif city == “Los Angeles”:
return 475
elif city == “Tampa”:
return 220
def rental_car_cost(days):
cost = 40days
if days >= 7:
cost -= 50
elif days >= 3:
cost -= 20
else:
cost = 40days
return cost
def trip_cost(city, days, spending_money):
return rental_car_cost(days) + hotel_cost(days) + plane_ride_cost(city) + spending_money
print trip_cost (“Tampa”, 5)
And I am getting this error:
Traceback (most recent call last):
File “python”, line 27, in
TypeError: trip_cost() takes exactly 3 arguments (2 given)
Please help me.