human
Split the array and add the first part to the end | Set 2 | Function to reverse arr [ ] from index start to end.
Function to print an array.
Function to left rotate arr [ ] of size n by k.
Driver Code.
Function calling"
Solution in Python:

=====
What is a code to split the array and add the first part to the end and the other steps required?
assistant
#Here is code to split the array and add the first part to the end and the other steps required.
 def rvereseArray ( arr , start , end ) :
	while start < end :
		temp = arr [ start ]
		arr [ start ] = arr [ end ]
		arr [ end ] = temp
		start += 1
		end -= 1
def printArray ( arr , n ) :
	for i in range ( n ) :
		print ( arr [ i ] , end = " ▁ " )
def splitArr ( arr , k , n ) :
	rvereseArray ( arr , 0 , n - 1 )
	rvereseArray ( arr , 0 , n - k - 1 )
	rvereseArray ( arr , n - k , n - 1 )
arr = [ 12 , 10 , 5 , 6 , 52 , 36 ]
n = len ( arr )
k = 2
splitArr ( arr , k , n )
printArray ( arr , n )