Save the coordinates of the given vertices of the rectangle
if ( s [ i ] [ j ] == ' * ' ) : NEW_LINE INDENT row [ i ] += 1 ; NEW_LINE col [ j ] += 1 ; NEW_LINE DEDENT for keys , values in row . items ( ) : NEW_LINE if ( values == 1 ) : NEW_LINE x = keys ; NEW_LINE for keys , values in col . items ( ) : NEW_LINE if ( values == 1 ) : NEW_LINE y = keys ; NEW_LINE