Create a new list from a list when a certain condition is met
Try:
newlist = [] for item in resultVital: if len(item) == 9: newlist.append(item)
try this:
newlist = [word for word in words if len(word) == 9]
Sorry, realized you wanted length, 9, not length 9 or greater.
newlist = [word for word in words if len(word) == 9]