6. Do the Algorithm steps separately—use the Python shell for testing.
a. Step 1 to read in is provided above. Test it separately.
b. Once you have things in a string “word” you can write a small loop that counts occurrences of each character. You can test out indexing into counters using ord() within the Python shell before you try to write the loops. If you run Step 1, you will have the “word” string available for testing in the Python shell. Try out some loops on it.
c. For step 3 use the max() function described above to find the character with the maximum count.
d. Use the ord() function and some arithmetic to calculate the shift from “E”.
e. Leave the check of Step 5 until the rest of the program is done.
f. Use the shift from step 4 and the formula for encryption/decryption (the one with the % operator) to decode each character.