#
6. Simple statements

Simple statements are comprised within a single logical line. Several simple statements may occur on a single line separated by semicolons. The syntax for simple statements is:

  `simple_stmt` | ::= | `expression_stmt`
  |  | `| assert_stmt`
  |  | `| assignment_stmt`
  |  | `| augmented_assignment_stmt`
  |  | `| pass_stmt`
  |  | `| del_stmt`
  |  | `| print_stmt`
  |  | `| return_stmt`
  |  | `| yield_stmt`
  |  | `| raise_stmt`
  |  | `| break_stmt`
  |  | `| continue_stmt`
  |  | `| import_stmt`
  |  | `| global_stmt`
  |  | `| exec_stmt`

  Download entire grammar as text.