Python allows easy creation of an integer from a string of a given base via
int(str, base).
I want to perform the inverse: creati
num = input("number") power = 0 num = int(num) while num > 10: num = num / 10 power += 1 print(str(round(num, 2)) + "^" + str(power))