How get value list by another list

how get list out ={2, 1, 2, 1} with use nodes or python?

I am not sure I understand your problem correctly, but this will solve your question as far as I understand it.
Your dont need a pythons script for this, it can be solved using a simple statement in a code block
Home.dyn (5.2 KB)

1 Like

thank you for example)
i am find this way: