Aprende Funciones Lambda Construyendo un Rastreador de Gasto - Step 7

Cuéntanos qué está pasando:

estoy cumpliendo los requerimentos y ejecutando la salida correctamente

Tu código hasta el momento


# User Editable Region

my_list = [1, 2]

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)

my_list.pop(-1)
print(my_list)

# User Editable Region

Información de tu navegador:

El agente de usuario es: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36

Información del Desafío:

Aprende Funciones Lambda Construyendo un Rastreador de Gasto - Step 7

Hi. I suggest you re-read this and check what the default behaviour of pop() does.

The pop() method can be used to remove an element from a list. By default, it removes the last element of the list.