Tell us what’s happening:
it says i need to have the print() inside my for loop. But i don’t know why its marking me that is supposedely is inside of it.
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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Challenge Information:
Learn Lambda Functions by Building an Expense Tracker - Step 8