2
I was trying to calculate the average of a matrix without using numpy, but n managed to get to the desired algorithm
def mediah(matriz:List):
soma = 0
for linha in matriz:
for aij in linha:
soma += aij
return soma/len(matriz)
This was the code I was able to get to, but the type of operation on line 5 is not supported.