Question: Please need in python 1. [20 points] Counting Duplicate Words Write a script that uses a dictionary to determine and print the number of duplicate
Please need in python
1. [20 points] Counting Duplicate Words 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. Words with counts larger than 1 have duplicates. Use the following sentence to test your code: text = ('this is sample text with several words' 'this is more sample text with some different words') Your output for this sentence should look something like the following: COUNT WORD is sample text this with words ONNNNNN
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
