Jeśli lista ma ciąg, usuń

strings_with_substring = [string for string in strings if substring in string]
Adventurous Albatross