python - Check if string does not contain strings from the list - Stack Overflow

PHOTO EMBED

Wed Jan 12 2022 04:25:36 GMT+0000 (Coordinated Universal Time)

Saved by [deleted user]

if all(x not in mystr for x in mylist):
    print mystr
content_copyCOPY

https://stackoverflow.com/questions/58641898/check-if-string-does-not-contain-strings-from-the-list