sum() Function in Python - Step by step guide ?

 

The Python sum() function adds up all the numerical values in an iterable, such as a list, and returns the total of those values.
sum() basically calculates the total of both floating-point numbers and integers.

 

Your Cart