I think if its really only padding and you don't need any other f-string features: The built-in string method is the way to go!
The f-string stuff looks like a voodoo meta language :/ Sadly I also taught myself some of the %-notation magic. We should celebrate explicitness wherever we can.
Comment
I think if its really only padding and you don't need any other f-string features: The built-in string method is the way to go!
The f-string stuff looks like a voodoo meta language :/ Sadly I also taught myself some of the %-notation magic.
We should celebrate explicitness wherever we can.
Option 3: `f'{s.ljust(width)}'` 😉