#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1030
Task: Write a Python function that computes matrix multiplication without numpy for two 3x3 matrices
Generated: 2026-02-12T17:36:57.153722
"""

def matrix_multiply(mat1, mat2):
    result = [[0 for _ in range(3)] for _ in range(3)]
    for i in range(3):
        for j in range(3):
            for k in range(3):
                result[i][j] += mat1[i][k] * mat2[k][j]
    return result

if __name__ == '__main__':
    matrix_a = [
        [1, 2, 3],
        [4, 5, 6],
        [7, 8, 9]
    ]
    matrix_b = [
        [9, 8, 7],
        [6, 5, 4],
        [3, 2, 1]
    ]
    product = matrix_multiply(matrix_a, matrix_b)
    for row in product:
        print(row)