hello.py | Simple Numeric Computation |
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 |