Skip to content

Instantly share code, notes, and snippets.

@andeoliveira
Last active March 21, 2021 20:53
Show Gist options
  • Save andeoliveira/3eaaea06a9e9a8ce22ccf4f5acafbb98 to your computer and use it in GitHub Desktop.
Save andeoliveira/3eaaea06a9e9a8ce22ccf4f5acafbb98 to your computer and use it in GitHub Desktop.
Acessar um elemento em uma lista Python
#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