3/7 Oops, try again. Did you create a function called plane_ride_cost?


#1

What am i doing wrong?
def hotel_cost(nights):
return 140 * nights

def plane_ride_cost(city):
if "Charlotte" == city:
return 183 * nights
elif "Tampa" == city:
return 220 * nights
elif "Pittsburgh" == city:
return 222 * nights
elif "Los Angeles" == city:
return 475 * nights


#2

You must do "if city == "Name":"
so try this:

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


#3

yeah .. i have created the Funktion! it's adress is 0x7f16e2825a28 !

what now?

what's wrong with my Code?

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 citiy == "Los Angeles":
return 475

Edit:

oh .. i found my mistake! ... i have the letter "i" in "city" in Line 11 -_- so it spells "citiy" that is obviously wrong.
Sorry!!