|  |  | Python Reference Manual |  |  |

Previous: 2. Lexical analysis Up: 2. Lexical analysis Next: 2.1.1 Logical lines

#
2.1 Line structure

A Python program is divided into a number of logical lines.

Subsections

- 2.1.1 Logical lines
- 2.1.2 Physical lines
- 2.1.3 Comments
- 2.1.4 Encoding declarations
- 2.1.5 Explicit line joining
- 2.1.6 Implicit line joining
- 2.1.7 Blank lines
- 2.1.8 Indentation
- 2.1.9 Whitespace between tokens

|  |  | Python Reference Manual |  |  |

Previous: 2. Lexical analysis Up: 2. Lexical analysis Next: 2.1.1 Logical lines

Release 2.5.2, documentation updated on 21st February, 2008.