July 25, 2021
def solution(arr1, arr2): n = len(arr1) m = len(arr1[0]) for i in range(n): for j in range(m): arr1[i][j] += arr2[i][j] return arr1
def sumMatrix(A,B): answer = [[c + d for c, d in zip(a, b)] for a, b in zip(A,B)] return answer
GitHubVelogFacebook