Learn Lambda Functions by Building an Expense Tracker - Step 5

Tell us what’s happening:

I did what it asked but its not working! pls help?

Your code so far


# User Editable Region

my_list = [0, 2]
print(my_list)

my_list.append(3)
print(my_list)

print(my_list[0])


# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Learn Lambda Functions by Building an Expense Tracker - Step 5

Except you didn’t do what it asked. Note at the bottom it said “Do not change the list declaration”

You’re not supposed to touch the list’s declaration, aka where my_list is first given a value. You need to change the first element using bracket notation like in the example.

that’s what I thought I was doing. I changed the first element from 1 to 0 inside the bracket notation. I am so lost.

Look at the example code again:

example_list = [4, 5, 6, 7]
example_list[1] = 'oh'

It shows you how to change a single element in a list after it’s been declared

Oh ok. I didn’t realize I had to mimic the example by adding a line of code, and not use the ’ ’ (for anyone reading this who is stuck) I thought I just had to change a number. I solved it. Thank you!!

1 Like