human
Move all negative elements to end in order with extra space allowed | Moves all - ve element to end of array in same order ..
Create an empty array to store result.
Traversal array and store + ve element in temp array index of temp.
If array contains all positive or all negative ..
Store - ve element in temp array.
Copy contents of temp [ ] to arr [ ].
Driver program"
How can the above be solved in Python?

=====
What is a code to move all negative elements to end in order with extra space allowed and the other steps required?
assistant
#Here is code to move all negative elements to end in order with extra space allowed and the other steps required.
 def segregateElements ( arr , n ) :
	temp = [ 0 for k in range ( n ) ]
	j = 0
	for i in range ( n ) :
		if ( arr [ i ] >= 0 ) :
			temp [ j ] = arr [ i ]
			j += 1
	if ( j == n or j == 0 ) :
		return
	for i in range ( n ) :
		if ( arr [ i ] < 0 ) :
			temp [ j ] = arr [ i ]
			j += 1
	for k in range ( n ) :
		arr [ k ] = temp [ k ]
arr = [ 1 , - 1 , - 3 , - 2 , 7 , 5 , 11 , 6 ]
n = len ( arr )
segregateElements ( arr , n ) ;
for i in range ( n ) :
	print arr [ i ] ,