दो आव्यूहों को गुणा करने के लिए कोड लिखिएदो 3x3 मैट्रिक्स गुणा करें
कोड:

def multiply_matrices(matrix1, matrix2):
    result = [[0,0,0],[0,0,0],[0,0,0]]
    # matrix multiplication logic
    for i in range(3):
        for j in range(3):
            for k in range(3):
                result[i][j] += matrix1[i][k] * matrix2[k][j]
    return result

# example matrices
matrix1 = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
matrix2 = [[9, 8, 7], [6, 5, 4], [3, 2, 1]]

# multiply matrices
result_matrix = multiply_matrices(matrix1, matrix2)

# print result
for row in result_matrix:
    print(row) 

आउटपुट:

[30, 24, 18]
[84, 69, 54]
[138, 114, 90]