Getting there


#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
DOES NOT RETURN 183 WHEN THE CITY IS CHARLOTTE


#2

city's always have an uppercase first letter (Charlotte), string comparison is case-sensitive.


#3

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