Python word counts

Click Here to Download this Answer Instantly

Python 3 using pycharm
Develop a program that allows the user to enter a string. It then prints a table of the letters of the alphabet in alphabetical order which occur in the string together with the percentage of each letter occurs. case should be ignored. A sample run of the program might look this this: Please enter a sentence: This is String
g 8.3%
h 8.3%
i 25.0%
n 8.3%
r 8.3%
s 25.0%
t 16.6%] Develop a program that allows the user to enter a string. It then prints a table of the letters of the alphabet in alphabetical order which occur in the string together with the percentage of each letter occurs. case should be ignored. A sample run of the program might look this this: Please enter a sentence: This is String
g 8.3%
h 8.3%
i 25.0%
n 8.3%
r 8.3%
s 25.0%
t 16.6%
Modify your first program to print a table of the words of an input file in alphabetical order with the count of each word. case should be ignored. A sample run of the program might look like this:Please enter a file: data.txt
a 8
about 1
after 1
all 2
always 1
and 9
are 1
asked 1
balance 1
bank 1
be 2
because 3
began 1
better 1
between 1
by 1
can 2
cannot 1
change 3