Can we use inp_paragraph.count(iter_word) to make it simple ?

It would work, but the performance will drop off sharply as the length of the paragraph grows, and you'd still have to keep track of which words you already printed so you can correctly print the first one. So you might as well not bother with counting.

-tkc


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to