How to find the sum of a list in Python

Finding the sum of a list returns the sum of the integers in the list. For example, the sum of [1, 2, 3] is 6.

Solution for How to find the sum of a list in Python : You can use sum() to find the sum of a list Call sum(iterable) to return the sum of the list iterable.


how-to-find-the-sum-of-a-list-in-python