On 2/4/2012 11:53 AM, Steven D'Aprano wrote:
[snip]

In the interactive interpreter, as a convenience, the result of each line is automatically printed for you:

Actually the interpreter prints the result of each /statement /that IS an /expression/.
>>> 2
2
>>> a = 3
>>> a
3
IOW if the line is blank, start with # or is a statement the interpreter does not print anything (unless it is a print statement). For a messy example:

>>> if 1:3;a=4;a
...
3
4

--
Bob Gailer
919-636-4239
Chapel Hill NC

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to