Introduction
The sum() function adds up all numbers in a list or other group. It helps you quickly find the total without writing a loop.
You want to find the total cost of items in a shopping list.
You need to add up scores from a game to get the final result.
You want to calculate the total distance traveled from a list of daily distances.
You have a list of numbers and want to find their sum easily.