We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
a = [1, 2,3], [2, 3,4],[1,1,1]
b = [4, 5,6], [7, 8,9],[4,5,7]
res = 0
for i in range(3):
for j in range(3):
for k in range(3):
res += a[i][k]*b[k][j]
print(res)
res = 0
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Linear Algebra Foundations #4- Matrix Multiplication
You are viewing a single comment's thread. Return to all comments →