Python reduce()

1 개요[ | ]

Python reduce()
Python
CPU
0.0s
MEM
8M
0.0s
Copy
from functools import reduce
a = [2, 3, 4, 5]
print( reduce((lambda x, y: x*y), a) ) # 120
120

2 같이 보기[ | ]

3 참고[ | ]

편집자 J Jmnote Jmnote bot