Simple Array Sum

  • + 0 comments

    Its very easy for Python 3 : def simpleArraySum(ar): return(reduce(lambda x,y:x+y,ar)) This is the function Go through this link..... https://www.geeksforgeeks.org/python-lambda-anonymous-functions-filter-map-reduce/