Remove duplicate items in a list

Hello all,
I have a list of texts (in fact layers from every object got from Rhino) and I’d like to remove duplicate items to have a “clean” layer list.
How could I do it ?

Thank you in advance,

Create set component

1 Like

Try Create Set.

4 Likes

Thanks to all of you!

Since you are using code … translate the Method shown to P and put it into your main def.

Since you’re using Python, you can even create a set in code.

my_list = [1,2,3,2]
my_set = set(my_list)
print(my_set)

This prints {1,2,3}.