human
Find Second largest element in an array | Function to print the second largest elements.
There should be atleast two elements.
Sort the array.
Start from second last element as the largest element is at last.
If the element is not equal to largest element.
Driver code"
Solution in Python:

Write me a code to find Second largest element in an array and the other steps required?
assistant
#Here is code to find Second largest element in an array and the other steps required.
 def print2largest ( arr , arr_size ) :
	if ( arr_size < 2 ) :
		print ( " ▁ Invalid ▁ Input ▁ " )
		return
	arr . sort
	for i in range ( arr_size - 2 , - 1 , - 1 ) :
		if ( arr [ i ] != arr [ arr_size - 1 ] ) :
		print ( " The ▁ second ▁ largest ▁ element ▁ is " , arr [ i ] )
		return
	print ( " There ▁ is ▁ no ▁ second ▁ largest ▁ element " )
arr = [ 12 , 35 , 1 , 10 , 34 , 1 ]
n = len ( arr )
print2largest ( arr , n )