Hưng Thịnh
New member
What will be the output of the following Python code?
A. Too many arguments for sum() method
B. The method sum() doesn’t exist for tuples
C. 12
D. 9
Code:
>>> a=(2,3,4)
>>> sum(a,3)
B. The method sum() doesn’t exist for tuples
C. 12
D. 9