sum method list python code example Example 1: python sum of list >>> list = [1, 2, 3] >>> sum(list) 6 Example 2: how to find the sum of a list in python print(a+b):