Last active
August 25, 2019 18:43
-
-
Save christiancost47/2fa830ac1ac703a239cc4c8b4d63c1e3 to your computer and use it in GitHub Desktop.
acessing_elements
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
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