Learn Lambda Functions by Building an Expense Tracker - Step 12

Tell us what’s happening:

i cant understand the question please explain about that

Your code so far


# User Editable Region

def add_expense(expenses, amount, category):
    expenses.append()
    amount_list={'amount':amount}
    amount_list.append(amount)

# User Editable Region

India
expenses = []

Your browser information:

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

Challenge Information:

Learn Lambda Functions by Building an Expense Tracker - Step 12

Welcome to the forum @avengalamsivakumar

You should pass a dictionary as the argument to the .append() method.

You correctly created the dictionary, however you need to place it as an argument to the existing append() method.

Please reset the step to restore the original code and try again.

Happy coding