Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Since it is a REPL example, no print() is needed. In REPL any expression 
statement prints the repr of its result. For example:

>>> for x in range(1, 5):
...     f'{x}**2 = {x**2}'
... 
'1**2 = 1'
'2**2 = 4'
'3**2 = 9'
'4**2 = 16'

There are many such examples in the documentation, and I do not think that this 
particular example needs a change.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46087>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to