L=[2,4,5,6,2,1,6,6,3,2,4,5,3,4,5]
I want to know how many times an arbitrary sub-sequence shows up, s=[2,4,5]
for instance would return 2 times.
I tried L.count(s)
but it does not work because I think it is expecting to look for something like [random numbers ... [2,4,5] ... random numbers]
instead of 2,4,5
without the brackets.