GH avatar Bite 18. Find the most common word

Write a function that returns the most common (non stop)word in this Harry Potter text.

Make sure you strip out non-alphanumeric characters and stopwords. Your function should return a tuple of (most_common_word, frequency) (former lowercased).

The template code already loads the Harry Potter text and list of stopwords in.

Check the tests for more info - have fun!

104 out of 107 users completed this Bite.
Will you be Pythonista #105 to crack this Bite?
It takes an average of ~76 minutes to solve this Bite (submissions 5-240 min).
Pythonistas rate this Bite 5.67 on a 1-10 difficulty scale.
» Up for a challenge? 💪

Buy Now Login and get coding
We use Python 3.7