Skip to content

Instantly share code, notes, and snippets.

@andeoliveira
Created March 21, 2021 21:27
Show Gist options
  • Save andeoliveira/b8505fbd7a24be58e8fe632de7d790c1 to your computer and use it in GitHub Desktop.
Save andeoliveira/b8505fbd7a24be58e8fe632de7d790c1 to your computer and use it in GitHub Desktop.
Remove um elemento pelo índice da lista Python
#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