x = [[-123 456],[567 -8910],[432 -890], [-567 976]]
I have a list of list, I want to swap the negative symbol of x and y elements of a list, if x is not negative it should be changed into negative and if y is negative it should be changed into positive (just have to change the symbol).
It should be like this:
x = [[-123 456],[-567 8910],[-432 890], [-567 976]]
I also want to extract all of the x elements in a separate list (for example: u = [-123,-567,-432,-567]) and y elements in a separate list (for example: v = [456, 8910, 980, 976]). Please suggest possible solutions.
The issue that I'm facing is that there are no commas between the elements