How to use mechanical script to add command ARG1 to parameter set

I am writing python code recently and need to parameterize ARG. The goal is to generate a "P" pattern.

Answers