What will be the output of the following Python code? [code] >>> a=(2,3,4) >>> sum(a,3) [/code]

Hưng Thịnh

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

Tìm kiếm

Back
Top