Pull it together


#1

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

def trip_cost(city, days, spending_money):
return hotel_cost(days) + plane_ride_cost(city) + rental_car_cost(days) + spending_money
print trip_cost("Los Angeles", 5, 600)

Help me take a look it keeps saying "Oops, try again. It looks like nothing was printed to the console!" and its driving me crazy because I feel like i did well in this one.
So please what did I impute wrong?


Pull it together
#2

the function call should be after the function, hint: indention


#3

LOL. Thanks, got it, it worked.:smiley:


#4