csc-python-solutions/13/5 - Product.py
2021-02-18 08:52:10 +01:00

5 lines
76 B
Python

def prod(L):
for i in range(1,len(L)):
L[0] *= L[i]
return L[0]