Created
March 21, 2021 21:27
-
-
Save andeoliveira/b8505fbd7a24be58e8fe632de7d790c1 to your computer and use it in GitHub Desktop.
Remove um elemento pelo índice da lista Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Remove um item na Lista Python pelo índice | |
lista_bandas = ["Metallica","AC/DC","The Who","Ramones"] | |
lista_bandas.pop(0) # remove a banda Metallica da lista Python | |
print(lista_bandas) #['AC/DC', 'The Who', 'Ramones'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment