Write a program to move all negative numbers to beginning and positive to end with constant extra spaces

def move (arr):
arr.sort()
j=0:
arr = [-1, 2, -3, 4, 5, 6, -7, 8, 9 ]
move (arr)
for j in arr:
print(e, end = " ")

1 Like

Correct @anushkananhi05

Correct, keep it up.
Practice more