Krijo një funksion për të zbritur dy matrica.
def subtract_matrices ((matrix1, matrix2): if len(matrix1)!= len(matrix2) or len(matrix1[0])!= len(matrix2[0]): print (('Error! Can't subtract two matrices of different sizes!') return None result = [[matrix1[i][j] - matrix2[i][j] for j in range (((((matrix1[0])) for i in range (((lenmatrix1))) ] return result