Question: Use python to write a program that reads a book (a file in text format), breaks each line into words, strips whitespace and punctuation from
Use python to write a program that reads a book (a file in text format), breaks each line into words, strips whitespace and punctuation from the words, and converts them to lowercase. Count the total number of the words, the number of times each word is used and print out the top 10 most frequently used words.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
