Question: ( Counting Duplicate Words - 1 0 points ) Write a script that uses a dictionary to determine and print the number of duplicate words
Counting Duplicate Words points Write a script that uses a dictionary to determine and print the number of duplicate words in a sentence. Treat uppercase and lowercase letters the same and assume there is no punctuation in the sentence. Use the techniques you learned in Section Words with counts larger than have duplicates
Character Counts points Recall that strings are sequences of characters. Use techniques similar to Fig. to write a script that inputs a sentence from the user, then uses a dictionary to summarize the number of occurrences of each letter. Ignore case, ignore blanks and assume the user does not enter any punctuation. Display a twocolumn table of the letters and their counts with the letters in sorted order.
Bonus points: Use a set operation to determine which letters of the alphabet were not in the original string
Deliverables:
Your source code file ipynb or py
A screenshot of your source code along with the output result
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
