The Python Console is a wonderful instrument to explore and learn PyQGIS. It's available in every QGIS installation and can be opened by selecting Python Console in the Plugins menu.
The Python Console is a dockable interface, and like all dockable interfaces, you can change its position inside QGIS or separate it. You can try moving the console by dragging and dropping it.
The console is shown in this screenshot:
As you can see, the console is composed of a button toolbar marked by the red box. The bigger Python Console is marked by the upper-right red box and is where all the command results are shown, and finally a bottom command line, marked by the bottom-right red box, is where you can edit commands. The default position of these graphical components can vary with the QGIS version.
Here, we describe how to test code interactively and explore...