%*d, . int(math.ceil(math.log(x, 10))) . * , , , . , '%*d'% (width, num) `, - python.
, math.log "outof".
import math
num = 5
outof = 52500
formatted = '%*d/%d' % (int(math.ceil(math.log(outof, 10))), num, outof)
outof len(), , :
num = 5
outof = 52500
formatted = '%*d/%d' % (len(str(outof)), num, outof)