프로그래머스 연습문제
- Lv 2. 행렬의 곱셈 (Python)
https://school.programmers.co.kr/learn/courses/30/lessons/12949
def solution(arr1, arr2):
answer = []
mul = 0
sub = []
for n in arr1:
for i in range(len(arr2[0])):
for j in range(len(n)):
mul += n[j] * arr2[j][i]
sub.append(mul)
mul = 0
answer.append(sub)
sub = []
return answer