Driver method to test above method
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT set1 = [ 10 , 5 , 3 , 4 , 6 ] NEW_LINE set2 = [ 8 , 7 , 9 , 3 ] NEW_LINE n1 = len ( set1 ) NEW_LINE n2 = len ( set2 ) NEW_LINE if ( areDisjoint ( set1 , set2 , n1 , n2 ) ) : NEW_LINE INDENT print ( " Yes " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " No " ) NEW_LINE DEDENT DEDENT