This blog is primarily focus on Java fundamentals and the libraries built on top of Java programming language. Most of the post are example oriented, hope you have fun in reading my blog....:)
‘sum’ function takes a list as argument and return sum of list of numbers.
>>> list1 = [1, 2, 3, 4, 5] >>> >>> sum(list1) 15
No comments:
Post a Comment