निम्नलिखित कथन का आउटपुट क्या है?
What is the output of the following statement ?
print ((2, 4) + (1, 5))
A)
B)
C)
D)
Explanation:
The statement is performing tuple concatenation:
(2, 4)
is a tuple.(1, 5)
is another tuple.- The
+
operator is used to concatenate both tuples.
So, the result will be (2, 4, 1, 5)
.
Thus, the output is:
(C) (2, 4, 1, 5).