Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python string not contains

mystring = ["reddit", "google"]
mylist = ["a", "b", "c", "d"]
print [s for s in mystring if not any(x in s for x in mylist)]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #string
ADD COMMENT
Topic
Name
6+2 =