Learn lambda functions by building an expense tracker - Step 9

We are given the following:

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

def print_expenses(expenses):
    for expense in expenses:
        print(f'Amount: {expense['amount']}, Category: {expense['category']}')

And given the question:

You are currently interpolating the expense dictionary in your f-string. Modify the f-string expression to access the value of the 'amount' key and the 'category' key in the expense dictionary.

I have tried this but it does not work:

print(f'Amount: {expense['amount']}, Category: {expense['category']}')

Any help?

Please post a link to the Step

you can’t use the same quotes, change one set of quotes to double quotes