Question: Specifics: You must use Python3 to code your solution. Your program must perform a frequency analysis of the text and display the following: . The

Specifics: You must use Python3 to code your solution. Your program must perform a frequency analysis of the text and display the following: . The input text The total number of characters from the input file Individual characters . O 0 . o The frequency of occurrences for every letter. Your output does not have to include letters that have 0 counts, although you can include it (depending on structure used). The order of this list does not matter The top 5 most frequently occuring ciphertext letters and number of occurrences. Bigrams Display the list of all bigrams and number of occurrences. The order of this list does not matter (sorted or unsorted) Display the top 5 bigrams and number of occurrences Trigrams Display the list of all trigrams and number of occurrences. The order of this list does not matter (sorted or unsorted) Display the top 5 trigrams and number of occurrences O . O O You should only use Python's included libraries (e.g., string, math, collections and not external libraries like cryptography) Input: Your program should prompt the user for the name of the input file. The input file will contain only letters - no punctuation and no space in-between words. Line breaks may be included, so remove them when reading from the file (.strip () )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
