Question: Requirement 1 . The program should prompt the user to enter a simple sentence. ( max 1 0 0 charactes ) Requirement 2 . It

Requirement 1.The program should prompt the user to enter a simple sentence.(max 100 charactes)
Requirement 2.It should split the sentence into words, count how often each word appears, and store the result in a dictionary. (use split0 Python built-in function)
Requirement 3.Print the words (in alphabetical order) and frequencies.
For example:
If my sentence is Fred fed Ted bread, and Ted fed Fred bread, nice bread
Output must be:
and, once
bread, three times
fed, twice
Fred, twice
nice, once
Ted, twice
Requirement 1 . The program should prompt the

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 Programming Questions!