+3 votes
in Class 11 by kratos

Write the output of the given python code :

!/user/bin/python

tup1 = (12, 34.56);

tup2 = (‘abc’, ‘xyz’);

Following action is not valid for tuples

tup1 [0] = 100;

So let’* create a new tuple as follows

tup3 = tup1 + tup2;

print tup3;

1 Answer

+6 votes
by kratos
 
Best answer

Output :

(12,34.56, ’abc’, ‘xyz’)

...