If I have this:
a=\'abcdefghij\' b=\'de\'
Then this finds b in a:
b in a => True
Is there a way of doi
Use the lists' string representation and remove the square braces. :)
def is_sublist(a, b): return str(a)[1:-1] in str(b)
EDIT: Right, there are false positives ... e.g. is_sublist([1], [11]). Crappy answer. :)
is_sublist([1], [11])