"Transportation"


#1


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


def hotel_cost(nights):
    return 140 * nights
def plane_ride_cost(city):
    if city == "Charlotte": # if the city is "Charlotte"
        return 183 # return 183
    if city == "Tampa": # if the city is "Tampa"
        return 220 # return 220
    if city == "Pittsburgh": # if the city is "Pittsburgh"
       return 222 # return 222
    if city == "Los Angeles": # if the city is "Los Angeles"
       return 475 # return 475
def rental_car_cost(days):
    return 40 * days
    if rent == 7 days -50
    elif:
        == 3 more days -20
    return cost


#2
 My code doesn't run correctly.  Please advise.  Thanks!

Sincerely,

Ian Michael Jones


#3

This doesn't look right.
You're comparing and decreasing fifty from days at the same time? You'll need to check for the condition and if it's evaluated as True, return a value.

if testSomethingHere:
    #if True
    doSomethingElse

And it goes!