DAGDA SEARCH | Back to results | Support

8.3 Interactive input

Source: https://docs.python.org/2.0/ref/interactive.html

Previous Page Up One Level Next Page Python Reference Manual Contents Index
Previous: 8.2 File input Up: 8. Top-level components Next: 8.4 Expression input


8.3 Interactive input

Input in interactive mode is parsed using the following grammar:

interactive_input: [stmt_list] NEWLINE | compound_stmt NEWLINE

Note that a (top-level) compound statement must be followed by a blank line in interactive mode; this is needed to help the parser detect the end of the input.


Previous Page Up One Level Next Page Python Reference Manual Contents Index
Previous: 8.2 File input Up: 8. Top-level components Next: 8.4 Expression input


See About this document... for information on suggesting changes.