programminginpython.com
Python Programming - Sum of all the elements in a list
A simple python program which calculates the sum of all the elements in a list. Here we use a predefined function sum() on the list to calculate its sum.