From 35fe89127feef58b3fce1dac94df971b55b51280 Mon Sep 17 00:00:00 2001 From: ilmfan <77287124+ilmfan@users.noreply.github.com> Date: Sun, 8 Aug 2021 14:04:32 +0500 Subject: [PATCH] Create find_sum.py --- Algorithms/algorithms/find_sum.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Algorithms/algorithms/find_sum.py diff --git a/Algorithms/algorithms/find_sum.py b/Algorithms/algorithms/find_sum.py new file mode 100644 index 0000000..5b3e874 --- /dev/null +++ b/Algorithms/algorithms/find_sum.py @@ -0,0 +1,5 @@ +def find_sum(given_array): + total = 0 + for i in given_array: + total += i + return total