How to repeat an action?

Is there any method, node or python script allows me to repeat the action of a node for a determined number of times, each time with an input in a list

In this example, (node-01) is accepting only one input of materials, to paint a list of surfaces (node-03), i need to repeat its action as many as the materials list (node-02) counts which are 2 materials in this case, each action must take the next item in the list of materials

Is there such a thing ?

No; this does not exist directly.

You’ll want to revisit the structure and coding of the loops in the python script to resolve this, or wrap the python in a custom node so you can take advantage of list levels and lacing.

could you please advise me where to start from, what to search for ?

For custom nodes, section 10 of the Dynamo primer is a good place to start. Be sure to go through the proceeding chapters, otherwise you’ll miss important stuff.

For the Python route, there are lots of Python looping tutorials out there, but I do t have a favorite.