im building a program for algebra stuff, right now im trying to get the step by step solution hence it is required for the process im trying to achieve.
i am able to get the final result but i was unable to find something about this in the documentation for sympy
from sympy import *
x = "3"
y = "-1"
z = "-4"
print(latex(sympify('(%s**%s)**%s' %(x,y,z))))
is there anyone that can point me in the right direction? or maybe offer an alternative path