What did i do wrong? 3/7


#1


#2

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

What you did wrong was for starters, whenever making an else statement, you just type else: note the colon enter, and type your code under the statement. You don't write something out in an else statement since the else statement just branches off the if statement.