Functions: Taking a vacation


#1

Please help! Whatever I do my code comes up wrong!

def hotel_cost(nights):
return 140*nights
def plane_ride_cost(city):
if city == "Charlotte":
return "183*city"
if city == "Tampa":
return "220*city"
if city == "Pittsburg":
return "222*city"
elif city == "Los Angeles":
return "475*city"


#2

These should not be strings.

return 183 * city

#3

Thanks. Problem is all solved now!