AUTHORS: Adam Calvin Chris David Derek Hunter Jacob Jason Jun Karl Kevin Michael Morgan Nadia Nerissa Omair Peter Peterson Ping Richard Rosie Scott Thanh Varun |
Feb 17, 23:43 - Thanh: Your solution2 is kinda short and neat! However, I do find a bug in your code: the return value of sort() is None. So... that will end up causing you an error in the for loop; python will complain that you try to iterate through a non-sequence item. You can fix it by doing word_list.sort() after you have set the tokenized text to word_list. Please log in if you would like to add comments. |
|