<prompt> Kuandika kazi Python kugeuza matrix 90 digrii katika wimbo wa saa.  <response>: Heres the Python function that can rotate a matrix 90 degrees clockwise:def rotate_matrixmatrix: take the transpose of the matrix matrix matrixji for j in rangelenmatrix for i in rangelenmatrix0 reverse each row of the matrix matrix row::-1 for row in matrix return matrix 