SilentGhost <ghost....@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 <rep...@bugs.python.org> <https://bugs.python.org/issue39648> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com