Untitled
unknown
python
2 years ago
155 B
15
Indexable
from functools import reduce
def Bmm(a, b):
while b:
a, b = b, a % b
return a
list1=[18,15,30,99,333]
bmm_asli=reduce(Bmm,list1)
bmm_asli
Editor is loading...
Leave a Comment
from functools import reduce
def Bmm(a, b):
while b:
a, b = b, a % b
return a
list1=[18,15,30,99,333]
bmm_asli=reduce(Bmm,list1)
bmm_asli