From d63f17f4bd0d163165eedd0eaf68a14503f59810 Mon Sep 17 00:00:00 2001 From: kj1800 <72385282+kj1800@users.noreply.github.com> Date: Mon, 5 Oct 2020 03:11:06 -0700 Subject: [PATCH] Create a_very_Big_sum --- a_very_Big_sum | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 a_very_Big_sum diff --git a/a_very_Big_sum b/a_very_Big_sum new file mode 100644 index 0000000..bc7e073 --- /dev/null +++ b/a_very_Big_sum @@ -0,0 +1,26 @@ +#!/bin/python3 + +import math +import os +import random +import re +import sys +# Complete the aVeryBigSum function below. +def aVeryBigSum(ar): + sum = 0 + for i in range(len(ar)): + sum+=ar[i] + return sum + +if __name__ == '__main__': + fptr = open(os.environ['OUTPUT_PATH'], 'w') + + ar_count = int(input()) + + ar = list(map(int, input().rstrip().split())) + + result = aVeryBigSum(ar) + + fptr.write(str(result) + '\n') + + fptr.close()