diff --git a/Basics/ArraySum.py b/Basics/ArraySum.py new file mode 100644 index 0000000..b1cfab7 --- /dev/null +++ b/Basics/ArraySum.py @@ -0,0 +1,13 @@ + +def _sum(arr,n): + + return(sum(arr)) + +arr=[] +arr = [12, 3, 4, 15] + +n = len(arr) + +ans = _sum(arr,n) + +print (\'Sum of the array is \',ans) \ No newline at end of file