From 1f25e5f7a4a9133ae26e8b22b13e014c06ffa09d Mon Sep 17 00:00:00 2001 From: Lukas Baumann Date: Thu, 18 Feb 2021 08:51:58 +0100 Subject: [PATCH] Update 5 - Product --- 13/5 - Product | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/13/5 - Product b/13/5 - Product index 316fe03..a11f123 100644 --- a/13/5 - Product +++ b/13/5 - Product @@ -1,4 +1,4 @@ def prod(L): - for i in L[1:]: - L[0] *= i + for i in range(1,len(L)): + L[0] *= L[i] return L[0]