SCT Error


Hi I’m stuck on the 7th and final part of ‘Taking a Vacation’.

I keep getting an SCT error. I’ve never seen this error message before, and from what I have seen online no one else really understands it either. I cannot find any solutions on other forums for this error.

This is my code:

def hotel_cost(nights):
    return 140*nights

def plane_ride_cost(city):
    if city == "Charlotte":
        return 183
    if city=="Tampa":
        return 220
    if city=="Pittsburgh":
        return 222
    if city=="Los Angeles":
        return 475

def rental_car_cost(days):
    cost = days*40
    if days >= 7:
        return cost-50    
    elif days >= 3:
        return cost-20
        return cost

def spending_money(money):
    money = 50*days

def trip_cost(city, days, money):
    return rental_car_cost(days) + hotel_cost(days) + plane_ride_cost(city) + money

def trip_cost(city, days, money):
    print trip_cost("Los Angeles", 5, 600)

Is there something wrong about my indentation? What even is an SCT error? Could someone please enlighten me as to what is wrong with my code, or what I am doing to get an SCT error?
Thanks. :slight_smile:

Preformatted text


this is the function call:

trip_cost("Los Angeles", 5, 600)

you are suppose to add, why did you add another entire function? The task of the exercise was to add a function call, not function + function call which is what you did


Oooooh dear I’m very silly haha. The code works now, not sure how I didn’t see that before, thanks for the help! :slight_smile: