Getting There "Oops, try again. It looks like plane_ride_cost does not return 183 when the city is Charlotte."


#1

def hotel_cost(nights):
return 140* nights
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'
It says "Oops, try again. It looks like plane_ride_cost does not return 183 when the city is Charlotte."
But i don't see whats wrong.


#2

HI to all your return statemnt

return '183'
return '220'
return '222'
return '475'

remove the ' ' around the numbers because it makes them string


#3

Oh thanks. I was having trouble,


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.