# Extract list of ONLY non repeated items

**URL:** <https://forum.dynamobim.com/t/extract-list-of-only-non-repeated-items/15192>\
**Category:** DesignScript\
**Tags:** revit, python, dynamo\
**Created:** [September 28, 2017, 12:31pm UTC](https://forum.dynamobim.com/t/extract-list-of-only-non-repeated-items/15192 "2017-09-28T12:31:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![moughit.bouchaara](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/moughit.bouchaara/32/84274_2.png) [@moughit.bouchaara](https://forum.dynamobim.com/u/moughit.bouchaara)\
**Post date:** [September 28, 2017, 12:31pm UTC](https://forum.dynamobim.com/t/extract-list-of-only-non-repeated-items/15192/1 "2017-09-28T12:31:58Z")

</div>

Hello everyone,

I have a list : {“A”,“B”,“D”,“E”,“B”,“D”} and I’d like to extract a list of ONLY non repeated items, in this case only A ad E. 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!

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [September 28, 2017, 12:38pm UTC](https://forum.dynamobim.com/t/extract-list-of-only-non-repeated-items/15192/2 "2017-09-28T12:38:43Z")

</div>

Hi @moughit.bouchaara

Here is one of the possible way…  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/5/15798f1e6e93e292beb0b9b76bf9b36c5dcc377d.png)

---

<div class="post-metadata">

**Author:** ![moughit.bouchaara](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/moughit.bouchaara/32/84274_2.png) [@moughit.bouchaara](https://forum.dynamobim.com/u/moughit.bouchaara)\
**Post date:** [September 28, 2017, 1:20pm UTC](https://forum.dynamobim.com/t/extract-list-of-only-non-repeated-items/15192/3 "2017-09-28T13:20:05Z")

</div>

Thanks @Kulkul ! Great. I was wondering how we could do that with python (1 node), for instance with the counter collection. My script is already huge. Otherwise, I will use your solution, thanks again.

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [September 28, 2017, 1:25pm UTC](https://forum.dynamobim.com/t/extract-list-of-only-non-repeated-items/15192/4 "2017-09-28T13:25:55Z")

</div>

Could you send your piece of code so that we can quickly see what this issue is about?

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [September 28, 2017, 1:56pm UTC](https://forum.dynamobim.com/t/extract-list-of-only-non-repeated-items/15192/5 "2017-09-28T13:56:58Z")

</div>

> [@moughit.bouchaara](#):
>
> I was wondering how we could do that with python (1 node), for instance with the counter collection.

@moughit.bouchaara Like this:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/1/a11038dbb0596e3451c6352a9b81dfb2df428643.jpg)

---

<div class="post-metadata">

**Author:** ![moughit.bouchaara](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/moughit.bouchaara/32/84274_2.png) [@moughit.bouchaara](https://forum.dynamobim.com/u/moughit.bouchaara)\
**Post date:** [September 28, 2017, 2:08pm UTC](https://forum.dynamobim.com/t/extract-list-of-only-non-repeated-items/15192/6 "2017-09-28T14:08:02Z")

</div>

Brilliant @Kulkul! thanks a lot!

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [September 28, 2017, 2:27pm UTC](https://forum.dynamobim.com/t/extract-list-of-only-non-repeated-items/15192/8 "2017-09-28T14:27:35Z")

</div>

@Yna_Db is right you should show us your code and errors. It helps others who is trying to help you.

---

<div class="post-metadata">

**Author:** ![moughit.bouchaara](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/moughit.bouchaara/32/84274_2.png) [@moughit.bouchaara](https://forum.dynamobim.com/u/moughit.bouchaara)\
**Post date:** [September 28, 2017, 2:31pm UTC](https://forum.dynamobim.com/t/extract-list-of-only-non-repeated-items/15192/9 "2017-09-28T14:31:55Z")

</div>

I will, but in this case. appending the code will not help, I kept it simple. The question was straighforward. Thanks everyone!

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [September 28, 2017, 2:40pm UTC](https://forum.dynamobim.com/t/extract-list-of-only-non-repeated-items/15192/10 "2017-09-28T14:40:48Z")

</div>

This is totally understandable. However, as I can see that you are newcomer, let me point out that the forum guidelines are mainly dedicated to maintain a good level of communication on this forum by exposing these simple savvy rules:

> [@How to get help on the Dynamo forums](https://forum.dynamobim.com/t/how-to-get-help-on-the-dynamo-forums/4677):
>
> One of the main goals of the Dynamo community is to help others. One way to do that is by answering your questions. But to get the right answer, you’ll first have to ask your question in the right way. Although people are generally very helpful, there are things you can do to improve your chances of getting good and quick answers. Below you will find some suggestions on how to achieve that. Do not think of these suggestions as rules and especially do not take them as a guarantee of getting an an…

---

<div class="post-metadata">

**Author:** ![moughit.bouchaara](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/moughit.bouchaara/32/84274_2.png) [@moughit.bouchaara](https://forum.dynamobim.com/u/moughit.bouchaara)\
**Post date:** [September 28, 2017, 2:55pm UTC](https://forum.dynamobim.com/t/extract-list-of-only-non-repeated-items/15192/11 "2017-09-28T14:55:08Z")

</div>

I totally agree . However, If I can keep it simple I will! It will be quick and efficient for everyone. Special thanks to @Kulkul !
