What is wrong? Error: 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 == "pittsburg":
return "222"
elif city == "los angeles":
return "475"


#2

you should return integer values, not strings


#3

i tried that. still got the same error


#4

string comparison is case sensitive.


#5

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