CBSE Class 11 Computer Science Question 77 of 114

Tuples — Question 14

Back to all questions
14
Question

Question 1(n)

Find the output generated by following code fragments :

t1 = (3,4)  
t2 = ('3' , '4')  
print(t1 + t2 )
Answer
Output
(3, 4, '3', '4')   
Explanation

Concatenate operator + combines the two tuples to form new tuple.