csc-python-solutions/13/5 - Product

5 lines
63 B
Plaintext
Raw Normal View History

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