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?

points = rs.GetObjects(“Select Points”, 1)
my_points =
for p in points :

print my_points

This works:

import rhinoscriptsyntax as rs

points = rs.GetObjects("Select Points", 1)
my_points = []
for p in points:

print my_points
1 Like