Author SilentGhost
Recipients Ananthakrishnan, SilentGhost, mark.dickinson, serhiy.storchaka, steven.daprano
Date 2020-02-16.14:00:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581861628.13.0.211301978347.issue39648@roundup.psfhosted.org>
In-reply-to
Content
You could (should?) use reduce, then:

>>> functools.reduce(math.gcd, (6, 30, 40, 60, 20, 40))
2
History
Date User Action Args
2020-02-16 14:00:28SilentGhostsetrecipients: + SilentGhost, mark.dickinson, steven.daprano, serhiy.storchaka, Ananthakrishnan
2020-02-16 14:00:28SilentGhostsetmessageid: <1581861628.13.0.211301978347.issue39648@roundup.psfhosted.org>
2020-02-16 14:00:28SilentGhostlinkissue39648 messages
2020-02-16 14:00:28SilentGhostcreate