Challenge: Word Frequency Analyzer
Tarefa
Swipe to start coding
Write a function that analyzes a given paragraph and returns a dictionary mapping each word to its frequency, ignoring case and punctuation.
- Split the input string into words, ignoring punctuation and treating uppercase and lowercase as the same.
- Count the occurrences of each word.
- Return a dictionary where each key is a word and each value is its frequency.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 7
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 4.76
Challenge: Word Frequency Analyzer
Deslize para mostrar o menu
Tarefa
Swipe to start coding
Write a function that analyzes a given paragraph and returns a dictionary mapping each word to its frequency, ignoring case and punctuation.
- Split the input string into words, ignoring punctuation and treating uppercase and lowercase as the same.
- Count the occurrences of each word.
- Return a dictionary where each key is a word and each value is its frequency.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 7
single