diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2024-03-31 21:09:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-31 21:09:22 (GMT) |
commit | 18e12641a61a88f7d08b2114ebe965892c6661c5 (patch) | |
tree | cd8f5da67d6788cff54bc38f690b044196fc3841 | |
parent | a32d6939486d7f90ee57e215077f6116e19de24d (diff) | |
download | cpython-18e12641a61a88f7d08b2114ebe965892c6661c5.zip cpython-18e12641a61a88f7d08b2114ebe965892c6661c5.tar.gz cpython-18e12641a61a88f7d08b2114ebe965892c6661c5.tar.bz2 |
gh-117387 Remove hash mark from introductory text (#117409)
-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 0aa0c3e..2a35989 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -639,7 +639,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()) |