write the program in python to shift the negative numbers to the left and the positive numbers to the right so that the resultant list will be as follows:
Original list: [-2,1,-3,-15,16,-17,5,-3,-6]
Output should be:
[1,16,5,-6,-3,-17,-15,-3,-2]
Answers
Answered by
8
Answer:
21-42-87-879-0
please mark as best answer and thank me
Similar questions