# Insert Multiple Items in a List of Lists

**URL:** <https://forum.dynamobim.com/t/insert-multiple-items-in-a-list-of-lists/43448>\
**Category:** Lists-Logic\
**Created:** [November 21, 2019, 12:35pm UTC](https://forum.dynamobim.com/t/insert-multiple-items-in-a-list-of-lists/43448 "2019-11-21T12:35:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julian\_Paskalev](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Julian\_Paskalev](https://forum.dynamobim.com/u/Julian_Paskalev)\
**Post date:** [November 21, 2019, 12:35pm UTC](https://forum.dynamobim.com/t/insert-multiple-items-in-a-list-of-lists/43448/1 "2019-11-21T12:35:41Z")

</div>

Hello there,  
I have been trying for 4 hours now to use the insert node. Uploading a .dyn file and an image to illustrate my issue.  
At this point I am a bit tired and disappointed that I can’t get it to work and am thinking about giving up on this.  
Any help is appreciated.

 ![Insert](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/0/706ad84b1323c979d69ce8a30484f9fa1ad4a902.png) [List Insertion Example.dyn](https://forum.dynamobim.com/uploads/short-url/tkrGqVfYzbXJlseW9slb0k2HXLg.dyn) (62.1 KB)  
Thanks

---

<div class="post-metadata">

**Author:** ![Thomas\_Corrie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_corrie/32/63060_2.png) [@Thomas\_Corrie](https://forum.dynamobim.com/u/Thomas_Corrie)\
**Post date:** [November 21, 2019, 2:26pm UTC](https://forum.dynamobim.com/t/insert-multiple-items-in-a-list-of-lists/43448/2 "2019-11-21T14:26:10Z")

</div>

I usually reach for Python for this sort of thing:

```
lists = IN[0]
values = IN[1]
indexes = IN[2]

out = []
for list, value, index in zip(lists, values, indexes):
	for v, i in zip(value, index):
		list.insert(i,v)
	out.append(list)
OUT = out

```

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/4/f49aa8034c12d049c0c92a3408348f90f2dc0d31.png)

Hope this helps,  
Thomas

---

<div class="post-metadata">

**Author:** ![Julian\_Paskalev](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Julian\_Paskalev](https://forum.dynamobim.com/u/Julian_Paskalev)\
**Post date:** [November 21, 2019, 2:40pm UTC](https://forum.dynamobim.com/t/insert-multiple-items-in-a-list-of-lists/43448/3 "2019-11-21T14:40:51Z")

</div>

Yes, this solves it. Thanks.
