This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Arthur-Milchior, docs@python, serhiy.storchaka
Date 2021-12-15.18:03:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639591397.2.0.924467901844.issue46087@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-12-15 18:03:17serhiy.storchakasetrecipients: + serhiy.storchaka, docs@python, Arthur-Milchior
2021-12-15 18:03:17serhiy.storchakasetmessageid: <1639591397.2.0.924467901844.issue46087@roundup.psfhosted.org>
2021-12-15 18:03:17serhiy.storchakalinkissue46087 messages
2021-12-15 18:03:17serhiy.storchakacreate