Last active
March 21, 2021 20:53
-
-
Save andeoliveira/3eaaea06a9e9a8ce22ccf4f5acafbb98 to your computer and use it in GitHub Desktop.
Acessar um elemento 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
#Acessar um elemento específico da lista | |
lista_bandas = ["Metallica","AC/DC","The Who","Ramones"] | |
banda_metallica = lista_bandas[0] #índice 0 = Metallica | |
print(banda_metallica) #Metallica |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment