Python version of left pad.
$ pip install pyleftpadThere are two way to use pyleftpad. First of all, you can use leftpad()
function from leftpad module in your Python script.
from leftpad import leftpad
def main():
print(leftpad('hello world', 40))
main()Second of all, you can use directly leftpad command in your shell.
$ leftpad -l 40 "hello world"