Return What?


#1



https://www.codecademy.com/courses/python-beginner-P5YtY/1/4?curriculum_id=4f89dab3d788890003000096#


I don't get error messages, but my program doesn't return values to the console.


I expect to see the total cost...any cost.


Replace this line with your code. 
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):
    if days >= 7:
        return (days * 40) - 50
    elif days >= 3 and days <=7: 
        return days * 40 - 20
    else:
            return days * 40
rental_car_cost(7)
def hotel_cost(nights):
    return 140 * nights
def trip_cost(city,days):
    return plane_ride_cost(city) + hotel_cost(days) + rental_car_cost(days)


#2

functions only execute if you call them, and if something is returned you should call the function with print so the returned thing gets printed:

print trip_cost('Tampa',3)

#3

I get that. Thank you. And, it works.


#4