Posts by Pedro Fernandes • 1 point
1 post
-
-2
votes2
answers10417
viewsQ: How do I multiply two matrices in python?
def multM(a, b): '''essa foi a função que eu tentei fazer''' if len(a) == len(b[0]): r = [] for i in range(len(a)): r.append([]) for j in range(len(b[0])): for k in range(len(a)): val = a[i][j] *…