Define a function overlapping ( ) that takes two lists and returns True if they have at least one member in common, False otherwise.
Answers
Answered by
2
!/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
Similar questions