More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
Ans. step1: first read the file
text=file.read();
step2: then split the text into words
words=text.split();
step3: count the frequency of each words
wordcount=Counter(words);
step4: find the 10 most common words
mostCommonWords=wordcount.mostCommon(10);
return mostCommonWords;
Help us improve. Please let us know the company, where you were asked this question :