Helphere


#1

def hotel_cost(nights):

return 140 * nights

city = raw_input("Where will you be going?")

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 trip_cost(city,days):

return days + days + city

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

it say Oops, try again. trip_cost('Tampa', 5) raised an error: unsupported operand type(s) for +: 'int' and 'str' after i type any place


#2

@byteninja98701,

Your trip_cost() function should return the combined number Values
of
plane_ride_cost(city) + hotel_cost(days) + rental_car_cost(days)


#3

do i need to use sum or just use your code??