Assuming a list contains numeric values, to calculate the total of those values you use a loop with an accumulator variable. The loop steps through the list, adding the value of each element to the accumulator.
Read »Totaling the Values in a List in Python
http://www.itechtalk.com –
User login
Navigation
Categories
Best published scoops - Technology
- 6Compare Price And Find Lowest Price On MSI AIO 18.5-Inch AE1900-09SUS Touch Screen Laptop
- 6Maruti Suzuki is all set to relaunch its SUV, Grand Vitara, with a bigger, more powerful engine
- 6Free bDroid Reloaded Theme for the Blackberry Storm
- 6Nokia 7510 Profile | Cell Phone Profile of the Nokia 7510 for T-Mobile
- 6Nvidia Tegra based smartphones coming soon?
Best Stories
Who's online
There are currently 3 users and 6 guests online.
Online users
- pankoj
- duetduet
- zozog
