Answers for "Write a program that finds the average of all of the entries in a 4 × 4 list of integers."

0

Write a program that finds the average of all of the entries in a 4 × 4 list of integers.

def avg(n):
    sum=0
    for i in n:
        for j in i:
            sum=sum+j
    return sum/16
print (avg([[2,3,4,5],[34,5,6,8],[2,4,7,4],[2,5,8,5]]))
Posted by: Guest on April-20-2021

Code answers related to "Write a program that finds the average of all of the entries in a 4 × 4 list of integers."

Browse Popular Code Answers by Language