As the title mentions,is there any builtins to do this job?I looked for that in dir(list) but got no usable one.Thanks.
dir(list)
Depends on what you mean by "contained". Maybe this:
if set(a) <= set(b): print "a is in b"