What is wrong? Error: It looks like plane_ride_cost does not return 183 when the city is Charlotte


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"


you should return integer values, not strings


i tried that. still got the same error


string comparison is case sensitive.


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