From b43fa6b9a554d58c697b7ce41b6ff796f67d125c Mon Sep 17 00:00:00 2001 From: Maria Fernanda Azolin <49958403+azolinmf@users.noreply.github.com> Date: Thu, 29 Oct 2020 09:38:41 -0300 Subject: [PATCH] Create AVeryBigSum.py --- python/AVeryBigSum.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 python/AVeryBigSum.py diff --git a/python/AVeryBigSum.py b/python/AVeryBigSum.py new file mode 100644 index 0000000..bfba4ad --- /dev/null +++ b/python/AVeryBigSum.py @@ -0,0 +1,7 @@ +# https://www.hackerrank.com/challenges/a-very-big-sum/problem + +def aVeryBigSum(ar): + sum = 0 + for index in range(len(ar)): + sum+=ar[index] + return sum