[Solved] Computer lengths of words inside string of a list Python [closed]


I am not going to write the code for you, but this will probably help. If I am understanding the question correctly you are trying to take a big block of text (paragraph) split it into sentences then get the average len of characters in each sentence.

So:

1) Break text block into sentences. Here is a post that should help you do that.

2) Count the letters in a sentence. Here is another post that will help remove the whitespace from the sentence. If you need to remove all the punctuation (everything except letters) from the string check out this post. Now you have a string that you can simply do a len(sentence_string) to get how many characters are in the sentence.

Next time please post the code you have tried, the errors you have gotten, and the text of the data you are trying to use. DON’T post pictures of words. It makes it a lot harder to help when we can’t just copy and paste everything and debug it ourselves.

solved Computer lengths of words inside string of a list Python [closed]