Created
March 21, 2021 23:09
-
-
Save andeoliveira/72ce694def9f87eb74f5ed65773b122a to your computer and use it in GitHub Desktop.
Adiciona um elemento no Set 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
#Adicionando um item no Sets no Python | |
bandas_rock_alternativo = {"Red Hot Chili Peppers", "Muse", "The Killers"} | |
bandas_rock_alternativo.add("Pearl Jam") # Adiciona um elemento no Set já criado. | |
print(bandas_rock_alternativo) #{'Muse', 'Pearl Jam', 'Red Hot Chili Peppers', 'The Killers'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment