Driver code
A = [ 0 , - 1 , 2 , - 3 , 1 ] NEW_LINE x = - 2 NEW_LINE size = len ( A ) NEW_LINE if ( chkPair ( A , size , x ) ) : NEW_LINE INDENT print ( " Valid ▁ pair ▁ exists " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " No ▁ valid ▁ pair ▁ exists ▁ for ▁ " , x ) NEW_LINE DEDENT