Question: 
Write a function to add all the numbers in a list and divide it with the length of the list.


Model's Code:
def sum_num(numbers):
    return sum(numbers) / len(numbers)



Sample Correct Code:
def sum_num(numbers):
    total = 0
    for x in numbers:
        total += x
    return total/len(numbers) 


Asserts:
assert sum_num((8, 2, 3, 0, 7))==4.0
assert sum_num((-10,-20,-30))==-20.0
assert sum_num((19,15,18))==17.333333333333332


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 886 of 974: 681/886 (76.86230248306998%): success