Hello. Will anyone help solve and parse the code in detail and explain? By study set. Assignment text: Given a text consisting of several sentences. Sentences end with a period, exclamation, or question marks. From each sentence remove the middle character if the length of the sentence is odd, and two middle characters if the length is even.
As I understood, here it is necessary to count the Length to one of the characters (.!?) And already in each segment count the number of characters and remove the averages. So I do not understand how to implement. Thank you in advance!