Update 5 - Product

This commit is contained in:
Lukas Baumann 2021-02-18 08:51:58 +01:00 committed by GitHub
parent 1acea68a88
commit 1f25e5f7a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]