Getting There, please help!


I am getting a strange error message with the code I put in. Here is the code I have in at the moment:

def hotel_cost(nights):
return 140 * nights

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

Here is the error message in the console that I am getting:

File "python", line 11
else city == "Pittsburgh":
SyntaxError: invalid syntax

And also another error message pops up at the bottom asking if I created a function called plane_ride_cost.

I am very confused so if anyone can help me out that would be great! I thought I did everything right


else statements cannot have conditions.


Ya I just figured that out and fixed it, such a stupid mistake I just made