I have a python project in jupyter notebook, and I want to display the final output with latex.
x = 5
print("The number you have inputted is ", complex(x, y), " ^ 1/", n, sep = '')
I want this to be formatted using latex:
I read a bunch of forums but the fraction wasn't working for 2digit numbers
n=10
from IPython.display import display, Markdown
display(Markdown(rf"""$ { complex(x, y) } ^ \frac{1}{n} $"""))
The best I could get:
Any suggestions would be very helpful :)


