Computer Science

Find the output generated by following code fragments :

t1 = (3,4)  
t2 = ('3' , '4')  
print(t1 + t2 )

Python Tuples

3 Likes

Answer

Output
(3, 4, '3', '4')   
Explanation

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

Answered By

1 Like


Related Questions