Learn Lambda Functions by Building an Expense Tracker - Step 8

Tell us what’s happening:

code keeps on telling me to add a pass statement on a new line to form a valid block of code

Your code so far

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

# User Editable Region

def print_expenses(expenses):
    for expense in expenses:
    print(f'Amount: {expenses}, Category: {expense}')
    pass

# User Editable Region

expenses = []

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0

Challenge Information:

Learn Lambda Functions by Building an Expense Tracker - Step 8

It says so when you have an indentation error. But in this case you should simply indent the code properly.

The above cannot be on the same indentation level of the for loop.

Also, double check the content of curly braces.