Taking a vacation 3/7 neeeeeeed heeeellllpppppp!


#1

here is my code:
def hotel_cost(nights):
return 140 * nights
def planeridecost(city):
if city == "Charlotte":
return 183
if city == "Tampa":
return 220
elif city == "Pittsburgh":
return 222
elif city == "Los Angeles":
return 475
but it is keep on saying this: File "python", line 7
SyntaxError: 'return' outside function.
CCCCCcan someone please help me?????????


#2

On line 7 change if to elif


#3

thank you this helped alot