I have a condition like:
str1 = "cat, dog, rat"
print( ("cat" not in str1) and ("dog" not in str1) and ("rat" not in str1)) #1
print(any(x not in str1 for x in ("cat","dog","rat"))) #2
The problem is #1 condition is too long if I add any others statements so I tranfer it to #2, but #2 return a opposite results, so how to write #1 simply in Python?