I want to make a new list from another list of words; when a certain condition of the word is met. In this case I want to add all words that have the length of 9 to a new li
Try:
newlist = [] for item in resultVital: if len(item) == 9: newlist.append(item)