def calcAverage (theList):
    """Calculates the average of a list of values.

    :param theList: The list of which the average is to be found.
    :type theList: list
    :return: The average of the values of theList
    :rtype: float
    """
    sum = 0
    numValues = 0
    for value in theList:
        sum += value
        numValues += 1

    return sum / numValues