Getting there


#1

def hotel_cost(nights):
return 140 * nights
def plane_ride_cost(city):
if "Charlotte":
return 183
elif city == "Tampa":
return 220
elif "Pittsburg":
return 222
elif "Los Angeles":
return 475
error: Oops, try again. It looks like plane_ride_cost does not return 220 when the city is Tampa.


"Getting there"
#2

your if condition:

if "Charlotte":

its always true, you should check if the city we are going to is Charlotte


#3

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