Tutorial #2 : Script Mode Programming And Syntax


Invoking the interpreter with a script parameter begins execution of the script and continues until the script is finished. When the script is finished, the interpreter is no longer active.
Let us write a simple Python program in a script. Python files have extension myfile.py
This produces the following result −
Python IdentifiersReserved WordsLines and IndentationMulti-Line StatementsQuotation in PythonComments in PythonUsing Blank LinesWaiting for the UserMultiple Statements on a Single LineMultiple Statement Groups as SuitesCommand Line Arguments

Comments