Loop through the list, adding the element and the element before it to the total. Since list indexing wraps around when the index is negative, this will treat the last element as before the first element.

total = 0
for i in range(len(myList)):
    total += myList[i] + myList[i-1]
print(total)
Answer from Barmar on Stack Overflow
๐ŸŒ
Online Tools
onlinetoolz.net โ€บ sum
Calculate the sum of a list of numbers - Online Tools
This summation tool makes it easy to calculate the sum of a list of numbers.
๐ŸŒ
CalculatorSoup
calculatorsoup.com โ€บ calculators โ€บ statistics โ€บ sum-calculator.php
Sum Calculator
Calculate the sum of a set of numbers. Calculator performs addition or summation to compute the total amount of entered numbers. Enter up to 10,000 numbers
People also ask

How many numbers can I add with this calculator?
The calculator has been tested with up to 10,000 numbers and performs instantly. It can handle even larger datasets with ease, making it suitable for both small and large-scale calculations.
๐ŸŒ
miniwebtool.com
miniwebtool.com โ€บ home page โ€บ math โ€บ basic math operations โ€บ sum calculator
Sum Calculator: Instant Number Addition with Visual Analytics
What statistics does the calculator provide?
Beyond the sum, the calculator provides comprehensive statistics including average (mean), median, minimum, maximum, range, and count. It also shows the distribution of positive, negative, and zero values with visual representations.
๐ŸŒ
miniwebtool.com
miniwebtool.com โ€บ home page โ€บ math โ€บ basic math operations โ€บ sum calculator
Sum Calculator: Instant Number Addition with Visual Analytics
Can I add negative numbers?
Absolutely. The calculator fully supports negative numbers and will show you the distribution of positive versus negative values in your dataset, along with their individual sums.
๐ŸŒ
miniwebtool.com
miniwebtool.com โ€บ home page โ€บ math โ€บ basic math operations โ€บ sum calculator
Sum Calculator: Instant Number Addition with Visual Analytics
๐ŸŒ
Online Tools
onlinetools.com โ€บ number โ€บ calculate-number-sum
Calculate Number Sum โ€“ Online Number Tools
You can also simply paste a fragment of textual data that contains numerical values that you want to sum up and the utility will extract them and find their sum. For example, if the input data is a sentence "20 apples and 30 pears", then you can enable the "Smart Sum" number extraction mode, and the program will automatically find the numbers 20 and 30 in the sentence, and calculate their sum: 20 + 30 = 50. On the other hand, if you input a well-formatted numerical list like "1, 2, 3, 4", then you can switch to the "Number Delimiter" mode, configure the number delimiter (in this case, it's a comma followed by a space ", "), and get the sum of 1 + 2 + 3 + 4 = 10 as the output.
๐ŸŒ
IPVoid
ipvoid.com โ€บ calculate-sum-list-of-numbers
Calculate Sum of a List of Numbers Online | IPVoid
This online tool can calculate the sum of a list of numbers (supports also numbers with a dot). Useful if you have a list of numbers one on each line and you want to get the sum of all these numbers.
๐ŸŒ
PlanetCalc
planetcalc.com โ€บ 8183
Online calculator: Quick Sum Calculator
It happened that I came across a set of numbers and wanted to sum them up. So, I've created this calculator - you just drop numbers in there, then press the Calculate button and get the resulting sum. I think it is a bit more useful than the standard windows calculator since you can easily tweak numbers in the list ...
Find elsewhere
๐ŸŒ
MiniWebtool
miniwebtool.com โ€บ home page โ€บ math โ€บ basic math operations โ€บ sum calculator
Sum Calculator: Instant Number Addition with Visual Analytics
December 22, 2025 - Shopping: Total up shopping lists, compare prices, and calculate savings. Inventory Management: Sum quantities, track stock levels, and calculate totals. Our calculator accepts numbers in various formats for your convenience: ... The total of all numbers added together.
๐ŸŒ
Coderstea
toolbox.coderstea.in โ€บ tool โ€บ sum-of-list-of-numbers
Sum of List of Numbers - ToolBox
Yes, our sum of list of numbers tool allows you to add or sum up any number of numbers. Simply enter the numbers that you want to add or sum up in the input field, separated by commas, and the tool will automatically calculate the result.
๐ŸŒ
Madecalculators
madecalculators.com โ€บ list-calculator
List Calculator โ€“ Simplify Your Calculations โ€“ Made Calculators
Enter numeric values into each of the five parameter fields and click the โ€œCalculateโ€ button. The calculator will compute the sum, average, product, maximum, and minimum of the entered values. The calculator takes the entered values, parses them into floating-point numbers, and validates them to ensure they are correct numeric inputs.
๐ŸŒ
CodeShack
codeshack.io โ€บ home โ€บ tools โ€บ number sum calculator
Number Sum Calculator - Add Numbers Online
A free online calculator to quickly sum a list of numbers. Paste your numbers with any separator, and our tool will instantly calculate the sum, count, average, and more.
๐ŸŒ
Hersam
dan.hersam.com โ€บ tools โ€บ sum.php
Sum a list of numbers
Enter a list of numbers, one per line, to generate a sum as you type. Non-numeric content can be included but it will be ignored. All numbers in the line will be combined into one. Example: 1 or 3 or 5 will be interpreted as 135 ... home blog archives docs entertainment funny lists humor - tools bmi calculator ...
๐ŸŒ
Combinationsumcalculator
combinationsumcalculator.com
Combination Sum Calculator
Find all combinations from a given set of numbers that add up to a given sum.
๐ŸŒ
Quicksumcalculator
quicksumcalculator.com
Online Quick Sum Calculator: Total Precision, Zero Hassle!
Simply input your numbers into the text area, using any non-numeric character like a comma, space, or semicolon as separators. Our calculator will automatically filter out these characters and sum up the numbers for you. Our Quick Sum Calculator is designed to efficiently handle a large volume ...
๐ŸŒ
Calculla
calculla.com โ€บ columnar_addition_calculator
CALCULLA - Columnar addition calculator
Calculator to add numbers. It displays the sum of any given numbers. It also displays columnar addition of these numbers, the carrying (regrouping), partial sums etc. Can be useful for primary school students (learning how to do columnar addition), for financial operations (can be set up to display dollar/cent format) and... for any other addition related purpose.