Question: Create a program in python for some preliminary statistics on a given paragraph of text. Assume the paragraph is in one string variable. Display a)
Create a program in python for some preliminary statistics on a given paragraph of text. Assume the paragraph is in one string variable. Display a) the total number of characters in the paragraph, b) the number of characters not counting spaces, c) the number of characters not including spaces and punctuation, and d) the number of words. (You may use the split function, as needed.) The program should then recalculate and display the number of words remaining after certain words are omitted. Words of up to two letters should be omitted. Other words to be omitted (such as the, and, for, then as examples) should be maintained in a tuple. Further, the program should prompt the user to specify any additional such words to be omitted.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
