Skip to content

Instantly share code, notes, and snippets.

@andeoliveira
Created March 21, 2021 21:22
Show Gist options
  • Save andeoliveira/ebdc35e9f706deea3d66dd8686ad9ae1 to your computer and use it in GitHub Desktop.
Save andeoliveira/ebdc35e9f706deea3d66dd8686ad9ae1 to your computer and use it in GitHub Desktop.
Remove um elemento da lista Python
#Remove um item na lista Python
lista_bandas = ["Metallica","AC/DC","The Who","Ramones"]
lista_bandas.remove("Ramones") # remove a banda Ramones da lista Python
print(lista_bandas) #['Metallica', 'AC/DC', 'The Who']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment