Pessoal, boa noite a todos!
Poderiam me ajudar?
Estou travado nesse step e não sei mais o que posso fazer,
O que foi solicitado:
Step 29
Within the filter_expenses_by_category function, replace pass with a lambda function. Use expense as the parameter and evaluate the comparison between the value of the 'category' key of the expense dictionary and category using the equality operator.
O código:
def filter_expenses_by_category(expenses, category):
return list(filter(lambda expense: expense['category'] == category, expenses))