Sep-03-2020, 08:09 AM
(Sep-03-2020, 06:30 AM)bowlofred Wrote: 10000 isn't a large number for modern machines. Use a counter to count all the points. Then print all the points that have a count greater than 1.
from collections import Counter all_points = Counter(zip(x,y,z,p)) duplicate_points = [i for i in all_points if all_points[i] > 1]
Thank you. It seems to be much better.
I also modified my for loops, because i had some IF conditions inside the for loop.
by putting them out the problem solved.
Thanks again for your help!