We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21ce245 commit 23f41a6Copy full SHA for 23f41a6
1 file changed
Doc/library/functions.rst
@@ -1562,11 +1562,11 @@ are always available. They are listed here in alphabetical order.
1562
about strings, see :ref:`textseq`.
1563
1564
1565
-.. function:: sum(iterable[, start])
+.. function:: sum(iterable, /, start=0)
1566
1567
Sums *start* and the items of an *iterable* from left to right and returns the
1568
- total. *start* defaults to ``0``. The *iterable*'s items are normally numbers,
1569
- and the start value is not allowed to be a string.
+ total. The *iterable*'s items are normally numbers, and the start value is not
+ allowed to be a string.
1570
1571
For some use cases, there are good alternatives to :func:`sum`.
1572
The preferred, fast way to concatenate a sequence of strings is by calling
0 commit comments