Question: Write a program to do the following. Ask the user to enter a string. Convert all letters to uppercase. Count and display the frequency of

Write a program to do the following. Ask the user to enter a string. Convert all letters to uppercase. Count and display the frequency of each letter in the string. For example, suppose the user enters the string Csc.565, the program should display the following output because the letter C appears twice while the letter S appears once:

C 2

S 1

Each letter cannot be shown more than once in the output. The following output is incorrect because the letter C is shown twice:

C 2

S 1

C 2

The program should count letters only but no other characters. The following output is incorrect because it counts non-letter characters:

C 2

S 1

C 2

. 1

5 2

6 1

The following is an example.

Enter a string: Magee, Mississippi

M 2

A 1

G 1

E 2

I 4

S 4

P 2

Please post code i can use in pycharm for python programming

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!