human
Complete this python program:
def make_rowcol(string):
assistant
#Here is the Python program you requested.

    """Creates a rowcol function similar to the rowcol function of a view
    Arguments:
    string -- The string on which the rowcol function should hold
    Returns:
    A function similar to the rowcol function of a sublime text view
    """
    rowlens = [(len(x) + 1) for x in string.split('\n')]
    rowpos = []
    acc = 0
    for i in rowlens:
        acc += i
        rowpos.append(acc)
    def rowcol(pos):
        last = 0
        for (i, k) in enumerate(rowpos, 0):
            if (pos < k):
                return (i, (pos - last))
            last = k
        return ((-1), (-1))
    return rowcol