Python code for looping in an array


#1

it works when i replace " i " with a number…but i want it to loop through and append data to a new list…its not looping.


#2

Is this not the exact same issue as what you’ve made here?

Please do not make multiple posts about the same issue.

Also your issue is with your python script, you need to look at the length with you attempt to loop over.


#3

Yeh i wanted to create a separate post for that particular issue…as the post for the previous one was for within dynamo


#4

i have tree types of data in same file…the one that starts with FIA…has a total of 10 characters…another that starts with RIA has total 9 characters…another CM has 7 chars…so i want the code to check the length of the first element and change its spaing e accordingly,


#5

solved it.

Space add python.dyn (12.7 KB)


#6

Space add 2.dyn (14.8 KB)

Space add.dyn (19.5 KB)

Space backup.dyn (17.5 KB)

all the types . both dynamo and python