1- Open Python console

QGIS provides PyQGIS (Python API). It allows developers to built new tools and automates work. QGIS provides Python console for scripting. You can open it from the: Plugins ► Python Console menu.

Open_Python_Console.png