py variable space padding code example
Example: py variable space padding
mystr = "peter"
width = 10
filler = '*'
print(f'Output: {mystr:{filler}<{width}}')
# -> 'Output: peter*****'
print(f'Output: {mystr:{filler}>{width}}')
# -> 'Output: *****peter'