'Compute the average of list entries'

def _get_list_avg(self, data):

    sum = 0
    for i in data:
        sum += float(i)
    if is_int(str(data[0])):
        return ('%d' % (sum / len(data)))
    return ('%.2f' % (sum / len(data)))
