Write a function that takes in a list of numbers and outputs the mean of the numbers using the formula for mean. Do this without any built-in functions like sum(), len(), and, of course, mean()


In [1]:
numbers=[9,16,11,4,10]

In [2]:
def mean(numbers):
    total=0
    for number in numbers:
        total=total+int(number)
        count=len(numbers)
    return total/count

In [5]:
mean(numbers)


Out[5]:
10.0

In [ ]: