The program runs and informs the user about the kind of the equation. So I want this to appear:
"This is a: ax2+ bx + c"
How can I do this in pycharm or any other IDE?
The program runs and informs the user about the kind of the equation. So I want this to appear:
"This is a: ax2+ bx + c"
How can I do this in pycharm or any other IDE?
I'm guessing what you want is to show an exponent in the stdout
of your Python program. I've checked in PyCharm, and the following works for me:
print(u'This is a: ax\u00B2+ bx + c')
You can read more about how this works here. I've tried to figure out how to cleanly do string formatting in case you want to support a number of different possible exponents, and I've found it non-trivial. If someone else knows how to do this, it would make a useful addition/edit to this answer, or alternative answer.