Created
March 22, 2021 16:14
-
-
Save andeoliveira/4e017eee9df41dfdc1db0cb39a5d87cc to your computer and use it in GitHub Desktop.
Acessa um item do dicionário 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 item do dicionário | |
bandas_dicionario = {"Rock Alternativo":"Red Hot Chili Peppers", "Indie Rock": "The Strokes", "Punk":"Ramones"} | |
banda_punk = bandas_dicionario["Punk"] | |
print(banda_punk) #Ramones | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment