Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

plz use python Write a program that prompts the user to enter a message. The program calculates the frequency of the letters appearing in the

image text in transcribed

plz use python

Write a program that prompts the user to enter a message. The program calculates the frequency of the letters appearing in the message, and prints the result. E.g., the sentence "The rabbit is eating a carrot." would yield [4, 2,1,0,2,0,1,1,3,0,0,0,0,1,1,0,0,3,1,4,0,0,0,0,0,0] (4 "a", 2 "b", 0 "c", etc...). Your program should ignore the case (e.g. " A " and "a" are counted as one "a"). Hint: You should start by initialising a list of counters to store the frequency of appearance for each letter. Note: - The output of the program must be in the format shown in the examples below, including the format of the prompt, and all spaces and punctuation. - Useful methods: isalpha(), index(), append()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions