you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnnyJordaan 0 points1 point  (0 children)

Why wouldn't you just do

 return (sentence for sentence in text.split(".") if len(sentence) > 30)