Jika daftar memiliki string hapus

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