So starting with a list of strings, as below
string_list = [\'rest\', \'resting\', \'look\', \'looked\', \'it\', \'spit\']
I wan
Here is a one-liner that does what you want:
filter(lambda x: [x for i in string_list if x in i and x != i] == [], string_list)
Example:
>>> string_list = ['rest', 'resting', 'look', 'looked', 'it', 'spit']
>>> filter(lambda x: [x for i in string_list if x in i and x != i] == [], string_list)
['resting', 'looked', 'spit']