human
What is a code to find the two repeating elements in a given array and the other steps required given the following:
Find the two repeating elements in a given array | Print Repeating function.
Driver code"
Solution in Python:
assistant
#Here is code to find the two repeating elements in a given array and the other steps required.
 def printRepeating ( arr , size ) :
	print ( " Repeating ▁ elements ▁ are ▁ " , end = ' ' )
	for i in range ( 0 , size ) :
		for j in range ( i + 1 , size ) :
			if arr [ i ] == arr [ j ] :
				print ( arr [ i ] , end = ' ▁ ' )
arr = [ 4 , 2 , 4 , 5 , 2 , 3 , 1 ]
arr_size = len ( arr )
printRepeating ( arr , arr_size )