Cuéntanos qué está pasando:
I don’t know where the error is, it doesn’t happen to me.
Please help me
Tu código hasta el momento
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"]}')
def total_expenses(expenses):
pass
# User Editable Region
test = lambda x: x * 2
list(map(test, [2, 3, 5, 8]))
# User Editable Region
expenses = []
Información de tu navegador:
El agente de usuario es: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Información del Desafío:
Aprende Funciones Lambda Construyendo un Rastreador de Gasto - Step 14