Home »
Python »
Python List MCQs
How do you find the total of all the elements of the list?
28. How do you find the total of all the elements of the list?
- total() function
- sum() function
- aggregate() function
- sum_total function
Answer: B) sum() function
Explanation:
The sum() function will help you to find out the sum of all the elements in the list.