''' >>> sorted(parse('This,,,is,! then and this is now')) ['then', 'this', 'this'] >>> sorted(parse('Well, Prince, so Genoa and Lucca are now just family estates of the')) ['estates', 'family', 'genoa', 'just', 'lucca', 'prince', 'well'] >>> sorted(parse('It was one January morning, very early--a pinching,')) ['early', 'january', 'morning', 'pinching', 'very'] >>> sorted(parse('7987989is8989009is to of 2345')) [] >>> sorted(parse(" On the 8th of January Utterson had dined at the doctor's with ")) ['dined', 'doctor', 'january', 'utterson', 'with'] >>> sorted(parse(' THE STRANGE CASE OF DR. JEKYLL AND MR. HYDE')) ['case', 'hyde', 'jekyll', 'strange'] ''' #------------------------------------------------------- from hw4a import parse #------------------------------------------------------- if __name__ == "__main__": import doctest doctest.testmod()