This Python program receives a list of numeric values and calculates the total sum.
It’s useful for data analysis, score aggregation, or summarizing transaction amounts.
# Sample list of numbers
numbers = [10, 25, 30, 5, 15]
# Calculate the sum using the built-in sum function
total = sum(numbers)
# Display the result
print("Sum of list values:", total)
Sum of list values: 85
- The list numbers contains several integer values
- The sum() function computes the total of all elements in the list
- The final result is printed using print()