def is_symmetric_and_hollow(matrix):
 return ((matrix.T == matrix).all() and (trace(matrix) == 0))

def is_symmetric_and_hollow ( matrix ) : return ( ( matrix . T == matrix ) . all ( ) and ( trace ( matrix ) == 0 ) )
return true if matrix is symmetric and hollow .