⬅︎ Back to How to pad/fill a string by a variable in Python using f-strings
You put the fill character after the : but just before the < or >, like this: f"{mystr:*>{width}}".
Comment
You put the fill character after the : but just before the < or >, like this: f"{mystr:*>{width}}".