def subfinder(mylist, pattern):
    matches = []
for i in range(len(mylist)):
    if mylist[i] == pattern[0] and mylist[i:i + len(pattern)] == pattern:
        matches.append(pattern)
return matches
elegant find sub-list in list