Question: Requirement 1 . The program should prompt the user to enter a simple sentence. ( max 1 0 0 charactes ) Requirement 2 . It
Requirement The program should prompt the user to enter a simple sentence.max charactes
Requirement It should split the sentence into words, count how often each word appears, and store the result in a dictionary. use split Python builtin function
Requirement 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
