def average(list):
    """Computes the average of any input list, in our case the list of energies

    :param list: Any list (of numbers)
    :type list: list
    :return: The arithmetic average of the list
    :rtype: float or int
    """
    sum=0
    for i in list:
        sum+=i
    return sum/len(list)