mirror of https://github.com/python/cpython
gh-117387 Remove hash mark from introductory text (#117409)
This commit is contained in:
parent
a32d693948
commit
18e12641a6
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue