Statements and Syntax

Statements and Syntax

Some rules and certain symbols are used with regard to statements in Python:
 
Hash mark ( # ) indicates Python comments
NEWLINE ( n ) is the standard line separator (one statement per line)
Backslash ( ) continues a line
Semicolon ( ; ) joins two statements on a line
Colon ( : ) separates a header line from its suite
Statements (code blocks) grouped as suites
Suites delimited via indentation
Python files organized as “modules”