Hapus semuanya dari daftar yang cocok dengan string

new_list = [x for x in old_list if not x.startswith('@$\t') and not x.endswith('#')]

['this doesnt', 'this shouldnt', 'this isnt', 'this musnt']
Jittery Jay