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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started