Help me on this. how do i return the sum and why isnt this working


#1

def trip_cost(city, days):
return cost * plane_ride_cost(city)
return cost * rental_car_cost(days)
return cost * hotel_cost(days)


#2

a sum means adding plane_ride_cost(city), rental_car_cost(days) and hotel_cost(days) using the + operator

a function ends the moment a return keyword is reached, so you want get the sum of this function and return it on the same line


#3

thanks. not sure how I didn't get that .


#4