def get_position(cont, ch):
    """
    get the position of a character in a string content

    :param cont: string, input string
    :param ch: string, a character or a word
    :return: 2d list, consists of elements of position
    """

    assert isinstance(cont, str)
    assert isinstance(ch, str)

    begin = 0
    size = len(cont)
    length = len(ch)
    pos_list = []

    while begin < size:
        pos = cont.find(ch, begin, size)
        if pos == -1:
            break

        else:
            pos_list.append((pos, pos + length))
            begin = pos + length

    return pos_list