python ways to find sum of any element of list code example Example: python sum of list >>> list = [1, 2, 3] >>> sum(list) 6