Displaying the fraction like this is rather rudimentary:
print("The fraction is ", numerator, “/”, denominator)
I did it this way:
display(Latex(rf’\text{{The fraction is }} \frac{{{numerator}}}{{{denominator}}}'))
Displaying the fraction like this is rather rudimentary:
print("The fraction is ", numerator, “/”, denominator)
I did it this way:
display(Latex(rf’\text{{The fraction is }} \frac{{{numerator}}}{{{denominator}}}'))
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.