Created
March 21, 2021 21:15
-
-
Save andeoliveira/a6a77a5d6b3d86056055f5962a866eea to your computer and use it in GitHub Desktop.
Adicionar um item em uma 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
#Adicionar um item na Lista Python | |
lista_bandas = ["Metallica","AC/DC","The Who","Ramones"] | |
lista_bandas.append("The Beatles") #Adiciona a banda The Beatles na lista de bandas | |
print(lista_bandas) #['Metallica', 'AC/DC', 'The Who', 'Ramones', 'The Beatles'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment