Learn Lambda Functions by Building an Expense Tracker - Step 7

Tell us what’s happening:

keeps telling me my_list should be [0, 1, 2] but even when I put in [0, 1, 2] it still keeps giving me the that it won’t pass

Your code so far


# User Editable Region

my_list = [1, 2]
my_list.pop()
my_list.append(3)
print(my_list)

print(my_list[0])

my_list[0] = 0
print(my_list)

my_list.insert(1, 1)
print(my_list)



# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0

Challenge Information:

Learn Lambda Functions by Building an Expense Tracker - Step 7

Use pop() to remove the last element from my_list, then print my_list.

You are supposed to do it at the end of your code. Reset the code for this step and try again.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.