Im having some trouble here. 4. Transportation


#1
**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:**
**        cost -= 50**
**elif days >= 3:**
**        cost -= 20**
**        return cost**

#2

what am i doing wrong


#3

im getting an error message from the last line


#4

Please re-post your code without all the **'s. I'll format it for you this one time. In the meantime, look for the thread about using three backticks and give that a looking over. You will be able to format your posts without all the trouble you had to go through above. Thank you.


#6

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:
        cost -= 50
elif days >= 3:
        cost -= 20
        return cost

#7

Now we can see the issue... Indentation.


#9