>>> list = [1, 2, 3] >>> sum(list) 6

python sum of list

Similar Code Examples