def spitintogroupsof(groupSize, theList):
    # splits a sequence into a list of sequences, where the inner lists have at
    # most groupSize number of items.
    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/operator `+` -> `/`