How to calculate the sum of elements in a list in Python

preview_player
Показать описание
Python: Calculate the sum over a container.Python program for beginners.

Python Code:

s = sum([10,20,30])
print("\nSum of the container: ", s)
print()

Sample Output:
Sum of the container: 60

Guys if you like this video then subscribe to our channel, and comment me how is it?

related search:
* Python Program to Find Sum of List Elements - In Hindi
* How to calculate the sum of elements in a list in Python
* Find Sum of Elements in the List
*Python Calc Sum Average using infinite while loop

––––––––––––––––––––––––––––––
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
––––––––––––––––––––––––––––––
Рекомендации по теме
join shbcf.ru