4. transportation, getting syntax error on elif line


Oops, try again.
Your code looks a bit off. Feel free to peek back at earlier
exercises if you need a refresher! Your code threw the following error:
invalid syntax (python, line 33)

but elif statement is exact same format at if statment and no issue on that?

def rental_car_cost(days):
    total= 40*days
    return total
    if days >=7 :
        total= total-50
    return total
    elif days >=3 :
        total= total-20
    return total


Write the if statement, first, then write one return statement at the end.

    total = 40 * days    
    if days >= 7:
        total = total - 50    
    elif days >= 3:
        total = total - 20
    return total