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)
You might want to use a set
if set(a).issubset(b): print('a is contained in b')