Compilador de Python Online (Editor / Interpretador)
Escreva, execute e compartilhe o seu código Python instantaneamente com o Compilador de Python Online da Asimov Academy.
alguma_lista = [1, 2, 3, 4, 5] ultimo_elemento = alguma_lista.pop() print(ultimo_elemento) # Saída: 5 print(alguma_lista) # Saída: [1, 2, 3, 4]