Using python script in dynamo to detach multiple pressure pipe runs

“Hello, I’m new at learning Python for Dynamo and I am trying to create a script to detach multiple pressure pipe runs at once. Is there any way to do this using python?”

create if first using dynamo node then replicate it on python using the same logic. have you tried it?

No, because there is no node in Dynamo to detach multiple pipe runs.
And here is my question: Is it essential that a specific node exists in Dynamo to write any Python script, or can the script be written without relying on the availability of that node?

No - and typically your Python won’t perform as well as using the standard node in the graph, or from using the Civil 3D or AutoCAD API to perform the action.