Question: This is for Python 3.3.2...Have the user enter a string value and then the program should perform the following: (i) Display the number of characters,

This is for Python 3.3.2...Have the user enter a string value and then the program should perform the following: (i) Display the number of characters, tokens, and sentences in this string value. A token is any sequence of characters separated by whitespace characters. (ii) Display the average token size and the average sentence size. (iii) Assume that each token is separated by one or more whitespace characters and that each sentence end with a period. (iv) When the string value entered by the user end with non-whitespace characters without a trailing period, consider the sequence of non-whitespace characters to be a sentence. (v) Any whitespace characters entered by the user ata the front or back of the string should be removed before displaying the information described.

Very important --- Your solution shall continue performing the processing described in the previous step until the user enters the special string value done

Thanks!!

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