Hello,
how can i enumarte with python? How can i integrate the Codeblock(designScript: list and string) in the python node or to write in a better Code-Style
x,y = [],[]
for counter, value in enumerate(IN[0], 1):
x.append(counter)
y.append(value)
OUT = zip(x,y)
Which output do you expect? I don’t get your question.
like in the pic (schedule) - i want just enumurate my elements
the counter it is a string
i have problems accessing the list and convert to string ( list()
, str()
) … i mean inside python!
I can work with that, but i think my code can be made better! and only use python
As output you should have only x (it will will give you enumaration of elements)
OUT = x
1 Like