# Python - Working with arrays

**URL:** <https://forum.dynamobim.com/t/python-working-with-arrays/17324>\
**Category:** Revit\
**Tags:** revit, loop, python, geometry, dynamo\
**Created:** [December 12, 2017, 1:59pm UTC](https://forum.dynamobim.com/t/python-working-with-arrays/17324 "2017-12-12T13:59:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe.ashton](https://avatars.discourse-cdn.com/v4/letter/j/7993a0/32.png) [@Joe.ashton](https://forum.dynamobim.com/u/Joe.ashton)\
**Post date:** [December 12, 2017, 1:59pm UTC](https://forum.dynamobim.com/t/python-working-with-arrays/17324/1 "2017-12-12T13:59:17Z")

</div>

Hi Guys,

I’ve very recently picked up python. I’m trying to create a python code that tells me to distance from a curve to a point.

I think I have done this so far, however it only does it for each index. Forr Example:  
0 to 0  
1 to 1  
2 to 2  
When I need to it to tell me the distance for every curve to every start point. For example:  
0 to 0  
0 to 1  
0 to 2  
1 to 0  
1 to 1  
1 to 2

If this was a node I could just change the lacing, however as I’m doing in python it’s not that simple to me.

[Python Text Link](https://paste.ofcode.org/h3xjRpJmaKYJrwqi5eiLWW)

The node set-up

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/d/eda854d44cbd86c2f5f69b9fd152a7a51647ae0e.png)

Code snip it with output

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/3/8320831d828ae952a00de74ef63b1889ffe9a2f8.png)

Thanks for help

---

<div class="post-metadata">

**Author:** ![Joe.ashton](https://avatars.discourse-cdn.com/v4/letter/j/7993a0/32.png) [@Joe.ashton](https://forum.dynamobim.com/u/Joe.ashton)\
**Post date:** [December 12, 2017, 3:09pm UTC](https://forum.dynamobim.com/t/python-working-with-arrays/17324/4 "2017-12-12T15:09:16Z")

</div>

Perfect, thanks for the help! Nah, working on a script at work. No relation I’m afraid 🙂

---

<div class="post-metadata">

**Author:** ![architectemarouen](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@architectemarouen](https://forum.dynamobim.com/u/architectemarouen)\
**Post date:** [December 12, 2017, 3:14pm UTC](https://forum.dynamobim.com/t/python-working-with-arrays/17324/6 "2017-12-12T15:14:28Z")

</div>

im not doing [homework.im](http://homework.im) learning by my self. im discovering dynamo
