def is_sub(sub, lst):
    ln = len(sub)
for i in range(len(lst) - ln + 1):
    if all(sub[j] == lst[i + j] for j in range(ln)):
        return True
return False
How to find if a list is a subset of another list in order?