...

/

Miscellaneous Tips

Miscellaneous Tips

Learn how to use sum(), pickle, and input() functions.

sum() almost anything

The built-in sum() function is an excellent tool for summing up all numbers in an iterable and for operations dependent on such summation. For example, we can easily calculate the mean of a set, even if we don’t have access to statistics, numpy, scipy, or a similar module:

Access this course and 1400+ top-rated courses and projects.