Posts by Breno • 33 points
1 post
-
3
votes1
answer64
viewsQ: What is the best way to check if a string has any of these words?
I have a question, consider the following: nomes_proibidos = ['Corona', 'Clorivaldo', 'Pfizernaldo', 'Hulk', 'Naruto', 'Goku', 'Cloroquina'] def verificar_nome(n): for nome in nomes_proibidos: if…