If element is present on the mid of the two rows
if ( mat [ i_low ] [ j_mid ] == x ) : NEW_LINE INDENT print ( " Found ▁ at ▁ ( " , i_low , " , " , j_mid , " ) " ) NEW_LINE DEDENT elif ( mat [ i_low + 1 ] [ j_mid ] == x ) : NEW_LINE INDENT print ( " Found ▁ at ▁ ( " , ( i_low + 1 ) , " , ▁ " , j_mid , " ) " ) NEW_LINE DEDENT