human
Check if two array of string are equal by performing swapping operations | Function to check whether brr [ ] can be made equal to arr [ ] by doing swapping operations.
siz variable to store size of string.
iterate till N to sort strings.
sort each string in arr [ ].
sort each string in brr [ ].
Sort both the vectors so that all the comparable strings will be arranged.
iterate till N to compare string in arr [ ] and brr [ ].
Compare each string.
Return false becaues if atleast one string is not equal then brr [ ] cannot be converted to arr [ ].
All the strings are compared so at last return true ..
Driver code.
Store the answer in variable"
How can the above be solved in Python?

=====
What is a code to check if two array of string are equal by performing swapping operations and the other steps required?
assistant
#Here is code to check if two array of string are equal by performing swapping operations and the other steps required.
 def checkEqualArrays ( arr , brr , N ) :
	siz = len ( arr [ 0 ] ) ;
	for i in range ( N ) :
		temp1 = list ( arr [ i ] ) ;
		temp1 . sort ( ) ;
		arr [ i ] = " " . join ( temp1 )
		temp2 = list ( brr [ i ] ) ;
		temp2 . sort ( ) ;
		brr [ i ] = " " . join ( temp2 ) ;
	arr . sort ( )
	brr . sort ( )
	for i in range ( N ) :
		if ( arr [ i ] != brr [ i ] ) :
			return False ;
	return True ;
if __name__ == " _ _ main _ _ " :
	N = 2 ;
	arr = [ " bcd " , " aac " ] ;
	brr = [ " aca " , " dbc " ] ;
	ans = checkEqualArrays ( arr , brr , N ) ;
	if ( ans ) :
		print ( " true " ) ;
	else :
		print ( " false " ) ;