# Python Input Index out of range?

**URL:** <https://forum.dynamobim.com/t/python-input-index-out-of-range/4072>\
**Category:** Lists-Logic\
**Created:** [May 19, 2016, 10:37pm UTC](https://forum.dynamobim.com/t/python-input-index-out-of-range/4072 "2016-05-19T22:37:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Wright](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@Justin\_Wright](https://forum.dynamobim.com/u/Justin_Wright)\
**Post date:** [May 19, 2016, 10:37pm UTC](https://forum.dynamobim.com/t/python-input-index-out-of-range/4072/1 "2016-05-19T22:37:24Z")

</div>

![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/f/f96c5064ab0f402273a8df6030bdc81241eb6f0d.png)  
This Code I found.

Based on this image I expect that to add input lists into Python I would simply  
Inlist1 = IN[1]  
Inlist2 = IN[2]  
 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/5/54f5b23cee782402a604e8b05a0cda13783bb742.png)  
But when I do I get an index out of range formula?.

Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.  
Traceback (most recent call last):  
File “”, line 6, in   
IndexError: index out of range: 1

---

<div class="post-metadata">

**Author:** ![Robert\_Cervellione](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/robert_cervellione/32/8577_2.png) [@Robert\_Cervellione](https://forum.dynamobim.com/u/Robert_Cervellione)\
**Post date:** [May 19, 2016, 10:56pm UTC](https://forum.dynamobim.com/t/python-input-index-out-of-range/4072/2 "2016-05-19T22:56:14Z")

</div>

you should make sure you have the three lists coming into the node

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/b/b565bdd3dcddffbfae0e475e7098dea7f1236f2f.png)

---

<div class="post-metadata">

**Author:** ![Justin\_Wright](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@Justin\_Wright](https://forum.dynamobim.com/u/Justin_Wright)\
**Post date:** [May 19, 2016, 10:58pm UTC](https://forum.dynamobim.com/t/python-input-index-out-of-range/4072/3 "2016-05-19T22:58:03Z")

</div>

They are not showing up and I don’t know why?

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/0/056efa367bfa419f9dd5386571356afebc4c89dd.png)

---

<div class="post-metadata">

**Author:** ![Robert\_Cervellione](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/robert_cervellione/32/8577_2.png) [@Robert\_Cervellione](https://forum.dynamobim.com/u/Robert_Cervellione)\
**Post date:** [May 19, 2016, 11:08pm UTC](https://forum.dynamobim.com/t/python-input-index-out-of-range/4072/4 "2016-05-19T23:08:57Z")

</div>

click the “+” button

---

<div class="post-metadata">

**Author:** ![Justin\_Wright](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@Justin\_Wright](https://forum.dynamobim.com/u/Justin_Wright)\
**Post date:** [May 19, 2016, 11:16pm UTC](https://forum.dynamobim.com/t/python-input-index-out-of-range/4072/5 "2016-05-19T23:16:26Z")

</div>

Ah ha!🙂
