SyntaxFix
Write A Post
Hire A Developer
Questions
I am adding how to use a int from a length of a string within an f-string because it didn't appear to be covered:
>>> pad_number = len("this_string") 11 >>> s = f"{1:0{pad_number}}" } >>> s '00000000001'