Given a sentence, count word frequencies and return the 5 most common as a list of (word, count) tuples ordered by count descending (ties broken by word ascending).
Words are case-insensitive (treat 'The' and 'the' as the same). Strip punctuation: only keep alphanumeric characters and apostrophes.
result should be a list[tuple[str, int]] of length 5.
Ready to take your skills to the next level? Enroll in our comprehensive Data Analyst Career Track to master SQL, Python, Excel, and Power BI.
Run your code to see the result here.