Learn Lambda Functions by Building an Expense Tracker - Step 12

Tell us what’s happening:

I have tried all methods I have known but still I haven’t get correct code snippet to among step. So please help on this step.

Your code so far


# User Editable Region

def add_expense(expenses, amount, category):
    add_expense.append({"amount: 10"})

# User Editable Region

expenses = []

Your browser information:

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

Challenge Information:

Learn Lambda Functions by Building an Expense Tracker - Step 12

Hey,

{'amount': 50.0, 'category': 'Food'}

Notice in the example code that the amount and category are keys, and they are added inside single quotes. Try using single quotes and use it only on the key of your dictionary.
Good luck!