MENU
Question -

Define a function overlapping ( ) that takes two lists and returns True if they have at least one member in common, False otherwise.



Answer -

def overlapping (a, b):
11 = len (a)
12 = len (b)
for i in range (11):
for j in range (12):
if a[i] == b[j] :
return True
else
return False

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×