filtering a list of strings based on contents,[x for x in L if 'ab' in x]