1.

Write the output of the given python code : # !/user/bin/python tuple1, tuple2 = (123, ‘xyz’), (456, ‘abc’) print cmp (tuple1, tuple2) ; print cmp (tuple2, tuple1) ; tuple3 = tuple2 + (786,); print cmp (tuple2, tuple3)

Answer» Output :

-1

1

-1


Discussion

No Comment Found