From 1acea68a88b08ef256a78cc76e4f9eb14827e347 Mon Sep 17 00:00:00 2001 From: Lukas Baumann Date: Thu, 18 Feb 2021 08:49:56 +0100 Subject: [PATCH] Create 5 - Product --- 13/5 - Product | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 13/5 - Product diff --git a/13/5 - Product b/13/5 - Product new file mode 100644 index 0000000..316fe03 --- /dev/null +++ b/13/5 - Product @@ -0,0 +1,4 @@ +def prod(L): + for i in L[1:]: + L[0] *= i + return L[0]