Learn Lambda Functions by Building an Expense Tracker - Step 1

Tell us what’s happening:

I don’t know what’s wrong with my code

Your code so far


# User Editable Region

def add_expense(expenses, amount, category):

# 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/127.0.0.0 Safari/537.36

Challenge Information:

Learn Lambda Functions by Building an Expense Tracker - Step 1

Read again this bit of text you probably skipped:

Use the pass keyword to fill the function body

As I see in your code you don’t have anything in your function body

You always need to include a pass in these situations, to avoid throwing an error.