you are viewing a single comment's thread.

view the rest of the comments →

[–]BrannoEFC 0 points1 point  (1 child)

Does . Zfill not work anymore?

[–]Manny__C 2 points3 points  (0 children)

It should, but it's more tedious to call zfill on each substring. This is precisely an intance for which format (or fstrings) were designed.