7/7 not sure where to start


#1

print trip_cost("SOME CITY", NUM_DAYS, SPENDING_MONEY)
This is the hint, but not sure where to start, rest of code looks like this:
def hotel_cost(nights):
return nights * 140

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

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


#2

Inside your 'def rental_car_cost(days):' you didnt set the return function inside your if statement. you just changed the variable 'cost' and changed it to equal something else. you dont need the 'else:' function but it just makes it neater

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

Also you dont have a print function to print the total cost of the trip

print trip_cost("Los Angeles", 5, 600)