def slices(digits, l):
    if len(digits) < l or l <= 0:
        raise ValueError("Length doesn't fit in the series.")
    else:
        return [[int(n) for n in digits[i:i+l]] \
                 for i in range(len(digits)-l+1)]
1ab055734cc0bcfff42bc4ec48b78f061c1b6f0b
<mask token>

def slices(digits, l):
    if len(digits) < l or l <= 0:
        raise ValueError("Length doesn't fit in the series.")
    else:
        return [[int(n) for n in digits[i:i + l]] for i in range(len(digits
            ) - l + 1)]

def slices(digits, l):
    if len(digits) < l or l <= 0:
        raise ValueError("Length doesn't fit in the series.")
    else:
        return [[int(n) for n in digits[i:i+l]] \
                 for i in range(len(digits)-l+1)]