[issue39648] Update math.gcd() to accept "n" arguments.
SilentGhost
report at bugs.python.org
Sun Feb 16 09:00:28 EST 2020
SilentGhost <ghost.adh at runbox.com> added the comment:
You could (should?) use reduce, then:
>>> functools.reduce(math.gcd, (6, 30, 40, 60, 20, 40))
2
----------
nosy: +SilentGhost
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39648>
_______________________________________
More information about the Python-bugs-list
mailing list