Extract of repeated item

have a list : {“-956.668”,“-957.001”,“957.001”,“-957.001”,“-957.001”} and I’d like to extract a list of ONLY repeated item, in this case only -957.001. How can I achieve that within Dynamo or Python. I’ve tried with Python, importing collection counter but it did not work. please help. Thanks in advance!


maybe a start

3 Likes

Kai, thank you so much for your response
But,It is not working while we have two set of lists .
Can you suggest any another node or python script…

hard to say with out seeing what you are comparing>>> you could combine all of it into one lists then use group by key as you list length will match>>> other wise maybe something here

hi

edit: in python if you have a list of lists

import sys
OUT = [[i for i in v if v.count(i)>1] for v in IN[0]]

cordially
christian.stan

1 Like