Learn Lambda Functions by Building an Expense Tracker - Step 9

Tell us what’s happening:

mohon bantuannya distep 9 saya kesusahan distep ini.

Your code so far


# User Editable Region

add_expense = (expense, amount, category)
pass(add_expense)

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36

Challenge Information:

Learn Lambda Functions by Building an Expense Tracker - Step 9

Hi @ading20240100186, it looks like you’re stuck on Step 9. From your code, you’re creating a tuple instead of a lambda function. The goal here is to use a lambda to return a dictionary with the values expense, amount, and category. Try this instead:

python

CopyEdit

code removed by moderator

This should match what the step is asking for. Let me know if you still get stuck!

1 Like

hi @paddle

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.