Skip to content

Instantly share code, notes, and snippets.

@christiancost47
Last active August 25, 2019 18:43
Show Gist options
  • Save christiancost47/2fa830ac1ac703a239cc4c8b4d63c1e3 to your computer and use it in GitHub Desktop.
Save christiancost47/2fa830ac1ac703a239cc4c8b4d63c1e3 to your computer and use it in GitHub Desktop.
acessing_elements
empresas_tecnologia = ['tesla', 'google', 'dropbox', 'apple', 'nubank'] #List
print(empresas_tecnologia[0]) #acessar o index 0
>>>tesla
print(empresas_tecnologia[3]) #acessar o index 3
>>>apple
print(empresas_tecnologia[-1]) #acessar o item da ultima posição
>>>nubank
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment