

InterviewSolution
Saved Bookmarks
1. |
Suppose list1 is [1, 5, 9], what is sum(list1)?(a) 1(b) 9(c) 15(d) ErrorThe question was posed to me in an online interview.I would like to ask this question from Lists topic in chapter Lists & List Comprehension of Python |
Answer» RIGHT answer is (C) 15 The EXPLANATION: Sum returns the sum of all elements in the LIST. |
|