Adding several numbers together is a common intermediate step in many computations, so sum() is a pretty handy tool for a Python programmer. Python’s built-in function sum() is an efficient and Pythonic way to sum a list of numeric values.
This is a portion of the complete course, which you can find here:
https://realpython.com/courses/python...
The rest of the course covers how to:
- Concatenate lists and tuples with sum()
- Use sum() to approach common summation problems
- Use appropriate values for the arguments in sum()
- Decide between sum() and alternative tools to sum and concatenate objects
Nesta página do site você pode assistir ao vídeo on-line Using Python's Built-in sum() Function duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Real Python 23 Março 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 2,344 vezes e gostou 57 espectadores. Boa visualização!