Question: Write a Python program that draws a pie chart of the n most frequent letters in Words.txt file. The program wil Use Tkinter to build

Write a Python program that draws a pie chart of the n most frequent letters in "Words.txt file. The program wil Use Tkinter to build an interface to input the number of letters, n, in the pie chart; Have a module imported that determines the probability of letters in "Words.txt" file: a. b. Frequency of letter Probability ftrFrequencies of all letters c. Use Turtle to draw the pie chart: i. Area of each segment of the pie chart is proportional to the probability of the corresponding letter: ility of letter - Central angle of segment 2nt ii Each segment has a different color; iii Each segment has a legend showing the letter and its probability iv. The last segment represents "All Other Letters" and their cumulative probability. In the graph below, the probability of All Other Letters is one minus the sum of the probabilities of letters e, s, and i 0 1182 v. Note Beware! Using graph tools or packages to draw the pie chart will not be considered an acceptable solution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
