Hey there everyone I need a little help. Right now I am in the process of writing a program that uses subscripts and superscript but I dont have a clue how to get them. I am not even sure if they can be used in python so if any of you could give me a little help I would love it. :)

Ok here is my problem more detailed. Lets say I am making a simple program in which I ask the person to type in a number and that number is multiplied my some other number of my choice. Now what I want is to put a subscript or superscript to the new number. How do I do that? Here is an example of the code I just describe:

def N():
a = input("Please enter any number: ");
b = a * 0.00544
print b

Now what I want is that when the program prints b to print a subscript or superscript next to it. The reason I am trying to get the sub/superscripts is that whenever python does a mathematical operation such as 5 * 0.00544 it prints this 0.027200000000000002 which can be simplified as 0.0272x10^18. Hopefully this explain better my little dilemma.

thanks that really helped a lot I can finish my program now. BTW my the scientific notation conversion is right since there are 18 numbers after the decimal.

>>> '%e' % (5 * 0.00544)
'2.720000e-002'
>>> '%.2e' % (5 * 0.00544) ## This is the correct form of sci. notation *10^-2
'2.72e-002'
>>>
>>> 0.0272 * 10**18 ## This is what your number was
27200000000000000.0

You see? Like I said, you were way off. That last one is 10^18

How can I make this to continue until the user presses N? I've tried using while(1), while( option == 'y' || option == 'Y') but it kept giving an error ...