-
Book Overview & Buying
-
Table Of Contents
Scientific Computing with Python 3
By :
A program is a sequence of statements that are executed in a top-down order. This linear execution order has some important exceptions:

Figure 1.2: Program flow
Python uses a special syntax to mark blocks of statements: a keyword, a colon, and an indented sequence of statements, which belong to the block (refer to the following Figure 1.3, Block command).

Figure 1.3: Block command
If a line in a program contains the symbol #, everything following on the same line is considered as a comment:
# This is a comment of the following statement a = 3 # ... which might get a further comment here
A backslash \ at the end of the line marks the next line as a continuation line, that is, explicit line joining. If the line ends before all the parentheses are closed, the following line will automatically be recognized as a continuation line, that is, implicit line joining.