Tell us what’s happening:
I can’t find the error in the above code.pls I need help
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: {expense}, category: {expense}')
# User Editable Region
expenses = []
Your browser information:
User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36
Challenge Information:
Learn Lambda Functions by Building an Expense Tracker - Step 16