Merge pull request #205 from zhangfelix/fix-gcd-bug

bug fix in gcd.md
This commit is contained in:
Isabelle Viktoria Maciohsek
2020-07-31 22:40:28 +03:00
committed by GitHub

View File

@ -9,10 +9,10 @@ Use `functools.reduce()` and `math.gcd()` over the given list.
```py
from functools import reduce
from math import gcd
from math import gcd as _gcd
def gcd(numbers):
return reduce(gcd, numbers)
return reduce(_gcd, numbers)
```
```py