Gevraagd

Schrijf een functie som(matrix1, matrix2) die gegeven twee matrices met dezelfde dimensies de som gaat bepalen.

Voorbeeld

\[\begin{pmatrix}\sf 1 &\sf 2\\ \sf 8& \sf 9\end{pmatrix} + \begin{pmatrix} \sf 0 & \sf -2\\ \sf -7& \sf 1\end{pmatrix} = \begin{pmatrix} \sf 1 & \sf 0\\ \sf 1& \sf 10\end{pmatrix}\]
>>> som([[1, 2], 
         [8, 9]],
        [[0, -2], 
         [-7, 1]])
[[1, 0],
 [1, 10]]