Update gcd.md

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-07-31 22:39:46 +03:00
committed by GitHub
parent 1069939543
commit 0e18e286e3

View File

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