Python Reference Manual
Next:
2.1.1 Logical lines
Up:
2. Lexical analysis
Previous:
2. Lexical analysis
2
.
1
Line structure
A Python program is divided into a number of
logical lines
.
2
.
1
.
1
Logical lines
2
.
1
.
2
Physical lines
2
.
1
.
3
Comments
2
.
1
.
4
Explicit line joining
2
.
1
.
5
Implicit line joining
2
.
1
.
6
Blank lines
2
.
1
.
7
Indentation
2
.
1
.
8
Whitespace between tokens
Python Reference Manual
Next:
2.1.1 Logical lines
Up:
2. Lexical analysis
Previous:
2. Lexical analysis
Send comments to
python-docs@python.org
.