Transportation 4/7


#1



https://www.codecademy.com/courses/python-beginner-P5YtY/1/3?curriculum_id=4f89dab3d788890003000096#

File "python", line 15
SyntaxError: 'return' outside function


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
def rental_car_cost (days):
    cost = 40 * days
if days >= 7:
    return cost - 50
elif days >= 3 :
    return cost - 20
else:
    return cost


#2

Hi in your rental_car_cot() function you should indent the if, elif and else statement like you did for this line

cost = 40 * days

#3

Thank you very much!