Learn Lambda Functions by Building an Expense Tracker - Step 10

Tell us what’s happening:

I think that I have fulfilled the requirements in the directions but I keep getting a syntax error with the brackets needed for the step. so what do I need to do?

Your code so far

def add_expense(expenses, amount, category):
    pass
    

# User Editable Region

    expenses[]

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36

Challenge Information:

Learn Lambda Functions by Building an Expense Tracker - Step 10

that is not correct syntax, no
do you remember how to give a value to a variable?

I fixed it the issue was the indent

the indentation was the other issue, yes, but did you fix the variable definition?

1 Like

it was mostly just the indentation on the other lines and the def before the declaration of the variable

that was an issue, yes, but expenses[] is still not the way to declare a variable