Printing "hello world" on several languages on Maya on the console (Script Editor).
MEL
On a MEL tab on the Script Editor, or the command line bar, selecting MEL:
print ("hello world");
And hit play on the script editor or enter key on the command line.
PYTHON
On a Python tab on the Script Editor, or the command line bar, selecting Python:
print "hello world"
And hit play on the script editor or enter key on the command line.