First time here? Check out the FAQ!
answered 2019-12-23 09:08:56 +0100
Like this:
sage: expr = x^2 sage: expr.operator() == operator.pow True sage: expr.operands() [x, 2]