The script editor is broken down into 2 parts:
Top section: output window
This reflects everything you do in Maya, from selecting objects to scaling and movement you’ll see this reflected in the output window
Bottom section: Input window
There are 2 tabs by default, MEL and Python these are the 2 languages that Maya supports. You can create more tabs and select the language for that tab by clicking on the small plus icon: