Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

if variable does not contain py

list = ['admin', 'add', 'swear']
st = 'siteadmin'
if any([x in st for x in list]):print "found"
else: print "not found"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #variable #py
ADD COMMENT
Topic
Name
5+8 =