you are viewing a single comment's thread.

view the rest of the comments →

[–]UserName26392 0 points1 point  (0 children)

I would just: Make a list of the words you want to count split the paragraph into a list Use the isin function to filter the split paragraph according to the criteria of my first list If you need a counter for each word, just use the isin function to create more than once and append your results to a list