SyntaxFix
Write A Post
Hire A Developer
Questions
I suggest this ugly method but it works:
length = 1 lenghtafterpadding = 3 newlength = '0' * (lenghtafterpadding - len(str(length))) + str(length)
I came here to find a lighter solution than this one!