Say I have a class called 'points' with attributes 'x' and 'y'
and I create a list of points p = [p1,p2,p3,p4]
where p1.x = x1, py.y = y1 ...
How do I easily extract all the x and y values as a list? e.g.
x = [x1,x2,x3,x4]
y = [y1,y2,y3,y4]
can this be done simply in one line of code in python?