From b912d2b24a3fbd552595e3584bf851f9a2c75127 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Sun, 31 Mar 2024 23:24:28 +0200 Subject: [3.12] gh-117387 Remove hash mark from introductory text (GH-117409) (#gh- --- Lib/collections/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) -- cgit v0.12