import re def main(): line1 = "The important thing about a language, is not so" line2 = "much what features the language possess, but" line3 = "the features it does possess, are sufficient, to" line4 = "support the desired programming styles, in the" line5 = "desired application areas." total_string = line1 + " " + line2 + " " + line3 + " " + line4 + " " + line5 print(total_string) phrases=re.split('[.,]',total_string) for phrase in phrases: print(phrase) if ( __name__ == "__main__" ): main()