Driver program to test above
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT head1 = None NEW_LINE head2 = None NEW_LINE head1 = push ( head1 , 7 ) NEW_LINE head1 = push ( head1 , 5 ) NEW_LINE head1 = push ( head1 , 1 ) NEW_LINE head1 = push ( head1 , 3 ) NEW_LINE head2 = push ( head2 , 3 ) NEW_LINE head2 = push ( head2 , 5 ) NEW_LINE head2 = push ( head2 , 2 ) NEW_LINE head2 = push ( head2 , 8 ) NEW_LINE x = 10 NEW_LINE print ( " Count ▁ = ▁ " , countPairs ( head1 , head2 , x ) ) NEW_LINE DEDENT