find string in a list of strings code example Example: find string in a list of strings matching = [s for s in some_list if "abc" in s]