Login and get codingWrite a function that returns the most common (non stop)word in this Harry Potter text.
Make sure you convert to lowercase, strip out non-alphanumeric characters and stopwords. Your function should return a tuple of (
most_common_word
,frequency
).The template code already loads the Harry Potter text and list of stopwords in.
Check the tests for more info - have fun!
539 out of 554 users completed this Bite.
Will you be Pythonista #540 to crack this Bite?
Resolution time: ~64 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 5.1 on a 1-10 difficulty scale.
» Up for a challenge? 💪