csc-python-solutions/13/5 - Product.py

5 lines
76 B
Python
Raw Normal View History

2021-02-18 07:49:56 +00:00
def prod(L):
2021-02-18 07:51:58 +00:00
for i in range(1,len(L)):
L[0] *= L[i]
2021-02-18 07:49:56 +00:00
return L[0]