Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python extraer ultimo elemento lista

mi_lista = [10, 20, 30]
elemento = mi_lista.pop()
print(elemento) # 30
print(mi_lista) # [10, 20]
 
PREVIOUS NEXT
Tagged: #python #extraer #ultimo #elemento #lista
ADD COMMENT
Topic
Name
9+4 =