Left-pad for Python
Installation:
pip install pad-to-left
Usage
from pad_on_left.left_pad import left_pad
>>>left_pad('input', 10, '-') -----input
This package uses doctest for testing, run doctest left_pad.py
to run the tests.
A python implementation of left-pad
pip install pad-to-left==1.0.0
Installation:
pip install pad-to-left
Usage
from pad_on_left.left_pad import left_pad
>>>left_pad('input', 10, '-') -----input
This package uses doctest for testing, run doctest left_pad.py
to run the tests.