Hello
My adventures in python continues and favorite books are silent again. Python offers a build-in waiy to test if a variable is inside an iterable object, using 'in' keyword:
if "a" in "abrakadabra" :
print "it is definitely here"
But is it possible to test if more than one item is in list (any one)? Currently, i'm using syntax below, but it is kinda long:
if "// @in " in sTxt or "// @out " in sTxt or "// @ret " in sTxt or <10 more>
print "found."
Of course regexp can help, but ewgexp will take big amount of code and will not be as clear as "a in b". Any other pythonic ways?