Working with lists of points. I am trying to delete some points and keep some, can i do this using their coordinates?

The problem i am having right now is when i print my_points it sort of repeats? Like i get coordinates for first point, then instead of just the coordinates of second ill get first and second, then first second and third. I mean whats up here?
Also is there a way i can select certain points using their coordinates?
thanks

points = rs.GetObjects(“Select Points”, 1)
my_points =
for p in points :
my_points.append((rs.coerce3dpoint§.X,rs.coerce3dpoint§.Y,rs.coerce3dpoint§.Z))

print my_points

This works:

import rhinoscriptsyntax as rs

points = rs.GetObjects("Select Points", 1)
my_points = []
for p in points:
    my_points.append((rs.coerce3dpoint(p).X,rs.coerce3dpoint(p).Y,rs.coerce3dpoint(p).Z))

print my_points
1 Like