SyntaxFix
Write A Post
Hire A Developer
Questions
There are many ways to achieve this but the easiest way in Python 3.6+, in my opinion, is this:
print(f"{1:03}")