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

Nguyễn Pháp

New member
What will be the output of the following Python code?
Code:
>>> a=(1,2)
>>> b=(3,4)
>>> c=a+b
>>> c
A. (4,6)
B. (1,2,3,4)
C. Error as tuples are immutable
D. None
 

Tìm kiếm

Back
Top