Simple Array Sum

  • + 0 comments

    For Python3 Platform

    I wrote the code from scratch to get more practice

    def simpleArraySum(arr):
        return sum(arr)
    
    n = int(input())
    arr = list(map(int, input().split()))
    
    result = simpleArraySum(arr)
    
    print(result)