------------------------------------------------------------------------------
MC logo
Hello, World!
[^] Code Examples
------------------------------------------------------------------------------
hello.py Simple Numeric Computation>>
#!/usr/bin/python3
# Say hello, world.
print ("Hello, world!")

Python uses # to mark comments. This is a common Unix convention, though Python isn't particularly a Unix language.

Python is line-oriented: Statements are not terminated by a semicolon, but by the end of the line. This is similar to shell scripting languages, either Unix shell scripts, or DOS BAT files. Not to mention FORTRAN.

The first line has a special meaning on Unix-like systems, and is just a harmless Python comment on others. On Unix, it specifies what program should interpret the file. On MS Windows, a similar thing is generally accomplished by naming Python files using a .py ending and registering that file type as Python.
Simple Numeric Computation>>