Getting There 3/7


#1
def hotel_cost(nights):
	return 140 * nights
def plane_ride_cost(city):
	if city == "Charlotte": 183
	return 183
	if city == "Tampa": 220
	return 220
	if city == "Pittsuburgh": 222
	return 222
	if city == "Los Angeles": 475
	return 475
  

I have tried using correct indentation but get errors from that. It is giving me the error “It looks like plane_ride_cost does not return 220 when the city is Tampa.”


#2

Hi @mike.bell89,

Within your conditional block headers, why do you follow each city name and colon with a number?

Check your spelling here …

    if city == "Pittsuburgh": 222

After making other corrections, check your indentation again.


#3

Thank you that worked. I was going off of the example.


#4