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
"{0:b}".format(100) # bin: 1100100 "{0:x}".format(100) # hex: 64 "{0:o}".format(100) # oct: 144