InterviewSolution
Saved Bookmarks
| 1. |
Write the output of the given python code : #!/user/bin/pythontup1 = (12, 34.56);tup2 = (‘abc’, ‘xyz’);#Following action is not valid for tuples#tup1 [0] = 100;#So let’s create a new tuple as followstup3 = tup1 + tup2;print tup3; |
|
Answer» Output : (12,34.56, ’abc’, ‘xyz’) |
|