Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT N = 7 NEW_LINE list = [ ] NEW_LINE list . append ( " ) ( ) ) " ) NEW_LINE list . append ( " ) " ) NEW_LINE list . append ( " ( ( " ) NEW_LINE list . append ( " ( ( " ) NEW_LINE list . append ( " ( " ) NEW_LINE list . append ( " ) " ) NEW_LINE list . append ( " ) " ) NEW_LINE countPairs ( N , list ) NEW_LINE DEDENT