

def spitintogroupsof(groupSize, theList):
    result = []
    for i in range(0, len(theList), groupSize):
        result.append(theList[i:(i + groupSize)])
    return result

dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py spitintogroupsof/original