Posts by gtamorim • 41 points
2 posts
-
2
votes3
answers3778
viewsA: Count the most popular words
def frequencia(texto): frequencia_por_palavra = [texto.count(p) for p in texto] return dict(zip(texto, frequencia_por_palavra)) def popularidade(texto, palavras): dFrequencia = frequencia(texto)…
-
2
votes2
answers131
viewsA: What does the expression !(...) mean?
It is a binary logic operator. It has the negation function, knowledge like not. It denies the return of the underlying term. If the return is verdadeiro the operator ! will yield the expression as…