SIMPLE STATEMENTS CHAPTER SEVEN A simple statement is 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 | annotated_assignment_stmt | pass_stmt | del_stmt | return_stmt | yield_stmt | raise_stmt | break_stmt | continue_stmt | import_stmt | future_stmt | global_stmt | nonlocal_stmt 7.1 Expression statements Expression statements are used (mostly interactively) to compute and write a value, or (usually) to call a procedure (a function that returns no meaningful result; in Python, procedures return the value$_{None}$ ). Other uses of expression statements are allowed and occasionally useful. The syntax for an expression statement is: expression_stmt ::= starred_expression An expression statement evaluates the expression list (which may be a single expression). In interactive mode, if the value is not$_{None}$ , it is converted to a string using the built-in$_{repr()}$ function and the resulting string is written to standard output on a line by itself (except if the result is$_{None}$ , so that procedure calls do not cause any output.) 83