Write a program that finds the average of all of the entries in a 4 × 4 list of integers. code example
Example: 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]]))