Learn Lambda Functions by Building an Expense Tracker - Step 8

Tell us what’s happening:

I don’t understand this, it seems simple but getting errors Please I need help with on this

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 (iPhone; CPU iPhone OS 15_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/120.0.6099.119 Mobile/15E148 Safari/604.1

Challenge Information:

Learn Lambda Functions by Building an Expense Tracker - Step 8

You are missing a space just before ‘Category’.

So how I put the assignment in, was that alright?

Your code is correct except that you are missing a space in your f-string just before the word ‘Category’.