Message408628
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. |
|
Date |
User |
Action |
Args |
2021-12-15 18:03:17 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, docs@python, Arthur-Milchior |
2021-12-15 18:03:17 | serhiy.storchaka | set | messageid: <1639591397.2.0.924467901844.issue46087@roundup.psfhosted.org> |
2021-12-15 18:03:17 | serhiy.storchaka | link | issue46087 messages |
2021-12-15 18:03:17 | serhiy.storchaka | create | |
|