Update 5 - Product
This commit is contained in:
parent
1acea68a88
commit
1f25e5f7a4
@ -1,4 +1,4 @@
|
|||||||
def prod(L):
|
def prod(L):
|
||||||
for i in L[1:]:
|
for i in range(1,len(L)):
|
||||||
L[0] *= i
|
L[0] *= L[i]
|
||||||
return L[0]
|
return L[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user