SilentGhost <[email protected]> added the comment:
You could (should?) use reduce, then: >>> functools.reduce(math.gcd, (6, 30, 40, 60, 20, 40)) 2 ---------- nosy: +SilentGhost _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue39648> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
