human
Find elements larger than half of the elements in an array | Prints elements larger than n / 2 element.
Sort the array in ascending order.
Print last ceil ( n / 2 ) elements.
Driver program"
How can the above be solved in Python?
 Give me a code to find elements larger than half of the elements in an array and the other steps required?
assistant
#Here is code to find elements larger than half of the elements in an array and the other steps required.
 def findLarger ( arr , n ) :
	x = sorted ( arr )
	for i in range ( n / 2 , n ) :
		print ( x [ i ] ) ,
arr = [ 1 , 3 , 6 , 1 , 0 , 9 ]
n = len ( arr ) ;
findLarger ( arr , n )