Getting "Operand" error


#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
else:
return 475

def rental_car_cost(days):
car_cost=days*40
if(days>=7):
return car_cost-50
elif(days>=3 and days<7):
return car_cost-20
else:
return car_cost

def trip_cost(days,city):
a=hotel_cost(days)
b=plane_ride_cost(city)
c=rental_car_cost(days)
total=a+b+c
return total

Oops, try again. trip_cost('Tampa', 7) raised an error: unsupported operand type(s) for -: 'str' and 'int'


#2

This is what I did try it !

    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):
    total = days * 40
    if(days >= 7):
        total -= 50
    elif(days >= 3):
        total -= 20
    return total
def trip_cost(city, days):
    return rental_car_cost(days)+hotel_cost(days)+plane_ride_cost(city)

#3
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):
    total = days * 40
    if(days >= 7):
        total -= 50
    elif(days >= 3):
        total -= 20
    return total
def trip_cost(city, days):
    return rental_car_cost(days)+hotel_cost(days)+plane_ride_cost(city)

Excuse me take this code because I have put an extra "space" on the other one