| Python Language Reference Manual by Guido van Rossum and Fred L. Drake, Jr. Paperback (6"x9"), 120 pages ISBN 0954161785 RRP £12.95 ($19.95) Sales of this book support the Python Software Foundation! Get a printed copy>>> |
8.3 Interactive input
Input in interactive mode is parsed using the following grammar:
interactive_input [stmt_list] NEWLINE-
|
compound_stmtNEWLINE
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.
| ISBN 0954161785 | Python Language Reference Manual | See the print edition |