It keeps giving me back an Oops message


#1

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

def trip_cost(days, city):
return trip_cost(city)+trip_cost(days)+hotel_cost(days)

trip_cost("Los Angeles", 1)

Pulling it together
#2

It keeps giving me back an Oops message saying something like Los Angeles, 8 takes 2 arguments (1 given)...


#3

@homestation

  1. Please format your code correctly. This can be done by pasting it in as raw text, selecting it, and pressing Ctrl+Shft+C

  2. You would need to be more specific in the error. You have 4 functions, any of which could have thrown that error.

Please revise your post with the above tips.