You can run python code in any text box within UCS (the "run python code" section is included of course). So don't worry about entering codes in wrong place.
In the "Run Python Code" window, when you click "show documentation", you can see explanations and example codes of coding within UCS. The sentences started with "#" are comments of the codes, describing what this code is for.
Moreover, if you click "user manual", a PDF file will pop up.
Please go directly to the last section and you may find what you need.
