Python QGIS

1- Open Python console:

QGIS provides Python console for scripting. You can open it from the: Plugins ► Python Console menu.

Open_Python_Console.png

2- Typing in Python console:

In the Python console use print() function to write.

Print("Hello My Dear Learner!")

Then click "Enter"

Hello My Dear Learner.png

3- Writing script on "Script editor":

For long scripts, you can use Script editor. To open it click on 'Show Editor"

Show Editor.png

https://smartrs.hashnode.dev/series/learning-python-qgis