Now, when we know how to define input and output, we are ready to develop Python scripts for Processing.
There are two ways to create a script:
Which method to use is a matter of taste and habits. In this book, we will use the built-in script editor. You can open it from the Processing toolbox. Locate and expand the Scripts group, expand the Tools subgroup, and double-click on the Create new script item. Alternatively, you can start typing
Create new script in the filter field. The toolbox's content will be filtered, and you can easily locate the corresponding item.
The Script editor looks like an ordinary text editor as shown in the preceding screenshot. ...