here is my code, then i will list codes i used but not wroks,(all code used):
def total_expenses(expenses):
lambda expense: expense['amount']
my code, here above. (orginal with no modifications).
def total_expenses(expenses):
sum(map(lambda expense: expense['amount'], expenses))
code.
def total_expenses(expenses):
return sum(map(lambda expense: expense['amount'], expenses))
and other one
map(lambda expense: expense['amount'])
here other code, used:
def total_expenses(expenses):
map(lambda expense: expense['amount'],expense)
-i appreciate help, from any one. (no one works).