In order to solve a mathematical problem, I would have liked to know how to calculate the determinant of a 3x3 matrix with permutation of rows in sagemaths on Co Calc. Here is a type of statement, the values change each time the page is reloaded, hence the interest of programming an algorithm to find the result of the exercise by changing the values of the corresponding matrix.
Thanking you in advance

Use this code to show $\det A=\det B$