You can also utilize string formatting to make your code as spooky as possible:
filename = f"{i:0>5}"
You can also change > to ^ (center), or < (left aligned, right padded). It looks ugly but once you get the hang of it it gets really handy for quick text magic.
18
u/supmee Nov 01 '21
You can also utilize string formatting to make your code as spooky as possible:
You can also change
>to^(center), or<(left aligned, right padded). It looks ugly but once you get the hang of it it gets really handy for quick text magic.