Hey, you never know


#1

this is my code:
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 spending_money():
money = 100
return money

def trip_cost(city, days, spenging_money):

return  rental_car_cost(days) + hotel_cost(days) + plane_ride_cost(city) + spending_money

this i the error:
Oops, try again. trip_cost('Tampa', 3, 0) raised an error: unsupported operand type(s) for +: 'int' and 'function'
*** i'm very confused!!! ***


#2

Use "Tampa" and tell us how it goes.