⬅︎ Back to How to pad/fill a string by a variable in Python using f-strings
I think I misunderstood. It doesn't appear to be possible do a dynamic fill with f-strings. E.g., `f'{name}:{filler}<{length}'` doesn't work, nor does `f'{name}:{filler}<10'` or `f'{name}:*>{length}'`. I've tried doing this before and gave up.
Comment
I think I misunderstood. It doesn't appear to be possible do a dynamic fill with f-strings. E.g., `f'{name}:{filler}<{length}'` doesn't work, nor does `f'{name}:{filler}<10'` or `f'{name}:*>{length}'`. I've tried doing this before and gave up.