Learn Lambda Functions by Building an Expense Tracker - Step 8

I am not really sure what i shpuld change

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 = []

Challenge Information:

Learn Lambda Functions by Building an Expense Tracker - Step 8

Hello finn1,

You’re missing a space after Category:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.