for i in range(len(m1)):
    row = m1[i]
newRow = []
for j in range(len(m2[0])):
    y = 0
for x in range(len(row)):
    rowEl = row[x]
colEl = m2[x][j]
y += rowEl * colEl
newRow.append(y)
prodM.append(newRow)
return prodM
Python 3: умножить вектор на матрицу без NumPy