ID EN
Collections

total

Python 3.11

Compute the sum of the counts.

Syntax

PYTHON
total()

Examples

Example 1
PYTHON
>>> c = Counter(a=10, b=5, c=0)
>>> c.total()
15