diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-03-31 21:24:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-31 21:24:28 (GMT) |
commit | b912d2b24a3fbd552595e3584bf851f9a2c75127 (patch) | |
tree | 4572b09e9047164d0ce4d86a11de5165af7a143e /Lib/collections | |
parent | c80d13838dbcfe239eeabfd950bc524d797e6db1 (diff) | |
download | cpython-b912d2b24a3fbd552595e3584bf851f9a2c75127.zip cpython-b912d2b24a3fbd552595e3584bf851f9a2c75127.tar.gz cpython-b912d2b24a3fbd552595e3584bf851f9a2c75127.tar.bz2 |
[3.12] gh-117387 Remove hash mark from introductory text (GH-117409) (#gh-
Diffstat (limited to 'Lib/collections')
-rw-r--r-- | Lib/collections/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index 0e7971a..5f000b5 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -638,7 +638,8 @@ class Counter(dict): >>> sorted(c.elements()) ['A', 'A', 'B', 'B', 'C', 'C'] - # Knuth's example for prime factors of 1836: 2**2 * 3**3 * 17**1 + Knuth's example for prime factors of 1836: 2**2 * 3**3 * 17**1 + >>> import math >>> prime_factors = Counter({2: 2, 3: 3, 17: 1}) >>> math.prod(prime_factors.elements()) |