CBSE · 083Class XII · 2023Section A1 mark

Question 15

30 March 2023 · Computer Science (083)

Which function returns the sum of all elements of a list ?

Answer

(b) sum()

Explanation

The built-in sum() function calculates the total of all numeric elements in an iterable like a list.