Statements

Pass statement

  • The "pass" statement is a null operation--when it is executed, nothing happens.
  • It is useful as a placeholder when a statement is required syntactically, but no code needs to be executed,

Simple statements

  • Several simple statements may occur on a single logical line separated by semicolons.
  • Two or more physical lines may be joined into logical lines using backslash characters (\) at the end of each non-final line.

Clause

  • A clause consists of a header and a suite.

Header

  • Each clause header begins with a unique keyword and ends with a colon.

Suite

  • A suite is a group of statements controlled by a clause.
  • A suite can be one or more semicolon-separated simple statements on the same line as the header, following the header's colon, or it can be one or more indented statements on subsequent lines.

Compound statements

  • Compound statements consist of one or more clauses.
  • The clause headers of a particular compound statement are all at the same indentation level.
  • A suite cannot contain nested compound statements if it is located on the same line as the header for the clause.