Learn Lambda Functions by Building an Expense Tracker - Step 4

Tell us what’s happening:

so the first of all i dont get it, and the second of all i tried lot of steps. Please let me know, what i have to do to

Your code so far


# User Editable Region

def add_expense(expenses, amount, category):
    expenses.append()
    

# User Editable Region


expenses = []

Your browser information:

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

Challenge Information:

Learn Lambda Functions by Building an Expense Tracker - Step 4

the question is this : Create a dictionary with a key 'amount' and value of the amount parameter and pass your new dictionary to the .append() call.

oh i get it! it was easy actually

2 Likes

man , it would have been crazily useful if you shared the solution, cuz i am stcuk right there with the same problem :frowning:

I WILL WAIT FOR YOUR RESPONSE

OMG man the solution is :
code removed by moderator
:sweat_smile: :sweat_smile:

hey @safsafboubou

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.

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.

1 Like

Please don’t ask for solutions since they’re not allowed on the forum, and please don’t post unconstructive things like this.

In the future, please create your own topic when you have specific questions about your own challenge code. Only respond to another thread when you want to provide help to the original poster of the other thread or have follow up questions concerning other replies given to the original poster.

The easiest way to create a topic for help with your own solution is to click the Ask for Help button located on each challenge. This will automatically import your code in a readable format and pull in the challenge url while still allowing you to ask any question about the challenge or your code.

Thank you.

Ok, my apologies, guys. I just thought that anyone seeking the solution would search for it here, so I thought it would be useful to post it here. But it turns out that is not how things work.

1 Like

any hints on the same

Create your own topic please

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.