SQLDAXExcelPython
Leaderboard
Core PythonMedium20 points

Most common word

Complete most_common_word(text) so it returns the most frequent word, ignoring capital letters. No word ties in the tests.

How your answer is tested

After your code, this runs and its result is checked:

result = [most_common_word("Sales up sales down SALES flat"), most_common_word("a b b")]
Show solutionLifetime

Real Python running in your browser through Pyodide, with pandas available. Nothing you type is sent to a server unless you save a score.

Python
Loading editor…

Press Ctrl+Enter or Run to see the result here.