[Programmers] 행렬의 덧셈
Python
def solution(arr1, arr2):
answer = []
for i in range(len(arr1)):
arr = []
for j in range(len(arr1[0])):
arr.append(arr1[i][j] + arr2[i][j])
answer.append(arr)
return answer
댓글남기기