Skip to content

Commit

Permalink
pythongh-117387 Remove hash mark from introductory text (python#117409)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhettinger committed Mar 31, 2024
1 parent a32d693 commit 18e1264
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/collections/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,8 @@ def elements(self):
>>> 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())
Expand Down

0 comments on commit 18e1264

Please sign in to comment.