human
Move all negative numbers to beginning and positive to end with constant extra space | A Python 3 program to put all negative numbers before positive numbers.
print an array.
Driver code"
Solution in Python:

=====
Write me a code to move all negative numbers to beginning and positive to end with constant extra space and the other steps required?
assistant
#Here is code to move all negative numbers to beginning and positive to end with constant extra space and the other steps required.
 def rearrange ( arr , n ) :
	j = 0
	for i in range ( 0 , n ) :
		if ( arr [ i ] < 0 ) :
			temp = arr [ i ]
			arr [ i ] = arr [ j ]
			arr [ j ] = temp
			j = j + 1
	print ( arr )
arr = [ - 1 , 2 , - 3 , 4 , 5 , 6 , - 7 , 8 , 9 ]
n = len ( arr )
rearrange ( arr , n )