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