def indexOfMaxValue (theList):
    """Finds the maximum value of theList.

    :param theList: The list in which to find the maximum
    :type theList: list
    :return: The maximum value and its indexes w/in the list
    :rtype: tuple
    """
    max_value = theList[0]
    max_index = []

    for i in range(len(theList)):
        if theList[i] == max_value:
            max_index.append(i)
        elif theList[i] > max_value:
            max_index.clear()
            max_value = theList[i]
            max_index.append(i)

    return max_value, max_index