human
Maximum determinant of a matrix with every values either 0 or n | Function for maximum determinant.
Function to print resulatant matrix.
three position where 0 appears.
position where n appears.
Driver code"
Solution in Python:
 ... What is a code to maximum determinant of a matrix with every values either 0 or n and the other steps required?
assistant
#Here is code to maximum determinant of a matrix with every values either 0 or n and the other steps required.
 def maxDet ( n ) :
	return 2 * n * n * n
def resMatrix ( n ) :
	for i in range ( 3 ) :
		for j in range ( 3 ) :
			if i == 0 and j == 2 :
				print ( "0" , end = " ▁ " )
			elif i == 1 and j == 0 :
				print ( "0" , end = " ▁ " )
			elif i == 2 and j == 1 :
				print ( "0" , end = " ▁ " )
			else :
				print ( n , end = " ▁ " )
		print ( " " )
n = 15
print ( " Maximum ▁ Detrminat = " , maxDet ( n ) )
print ( " Resultant ▁ Matrix : " )
resMatrix ( n )