Really need some help on this please-
I have a list:
mylist = "Cell Contents (Column Percentage, Counts, Statistical Test Results), Statistics (Overlap)"
I would like to find the following words in mylist:
'Statistical Test Results'
'Counts'
'Column Percentage'
Once found, I would like append those words to a new list in the order they appeared in mylist. So the new list should read:
newlist = ['Column Percentage','Counts','Statistical Test Results']
I know how to find a single word and append it to a new list using a for loop and in but I not too sure how to find multiple words and append them in the order they were found in the original list.
Thanks!