words text split(construct dictionary of word counts counts {for in wordscounts[wcounts get( , output analysis of most frequent words eval(input("output analysis of how many words")items list(counts items()items sort(items sort(key=byfreqreverse=truefor in range( )wordcount items[iprint("{ : }format(wordcount)if __name__ ='__main__'main(just for funhere' the result of running this program to find the twenty most frequent words in draft of the book you're reading right nowthis program analyzes word frequency in file and prints report on the most frequent words file to analyzebook txt output analysis of how many words the of to is that and in we this for you program be it are