The sum() function takes an iterable and returns the sum of items in it.Syntax:sum(iterable ... print(sum((1, 2, 3, 4, 5))) # sum values in a tuple.
確定! 回上一頁