Learn Lambda Functions by Building an Expense Tracker - Step 7

Tell us what’s happening:

I tried multiple times but cant able to solve this problem

Your code so far


# User Editable Region

my_list.pop(1)
print(my_list)

# 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/138.0.0.0 Safari/537.36

Challenge Information:

Learn Lambda Functions by Building an Expense Tracker - Step 7

By default, it removes the last element of the list. You can pass an index as the argument to the method, and it will remove the element at the given index.

Do you want to use the default, or provide an index argument?

Use pop() to remove the last element

You want to remove the last element from the list.

Please don’t reply to topics that are dormant for 2 months.