# Python : List Access

**URL:** <https://discourse.mcneel.com/t/python-list-access/15280>\
**Category:** Scripting\
**Created:** [December 31, 2014, 12:08am UTC](https://discourse.mcneel.com/t/python-list-access/15280 "2014-12-31T00:08:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![apoorvgoyal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/apoorvgoyal/32/146041_2.png) [@apoorvgoyal](https://discourse.mcneel.com/u/apoorvgoyal)\
**Post date:** [December 31, 2014, 12:08am UTC](https://discourse.mcneel.com/t/python-list-access/15280/1 "2014-12-31T00:08:35Z")

</div>

Hello,

I am new to python scripting in Rhino/Grasshopper. I am confused about a certain issue. I have a mix of geometries (Curves, breps ets) and which are connected to the python component as"list access". I am iterating over this list to make a new list of first 3 curves. However, the output shows a tree with same 3 curves being repeated 5 times. What is going wrong in the code? See attached image.

![](https://sea3.discourse-cdn.com/mcneel/uploads/default/14987/2627ca6ddb7a09c5.png)

---

<div class="post-metadata">

**Author:** ![603419608](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/603419608/32/487406_2.png) [@603419608](https://discourse.mcneel.com/u/603419608)\
**Post date:** [December 31, 2014, 2:26pm UTC](https://discourse.mcneel.com/t/python-list-access/15280/2 "2014-12-31T14:26:25Z")

</div>

can upload your file?

---

<div class="post-metadata">

**Author:** ![603419608](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/603419608/32/487406_2.png) [@603419608](https://discourse.mcneel.com/u/603419608)\
**Post date:** [December 31, 2014, 2:45pm UTC](https://discourse.mcneel.com/t/python-list-access/15280/3 "2014-12-31T14:45:57Z")

</div>

![](https://sea3.discourse-cdn.com/mcneel/uploads/default/14992/866554f3be7c69af.jpg)

You need to hang the list access
