pad-to-left

A python implementation of left-pad


License
Apache-2.0
Install
pip install pad-to-left==1.0.0

Documentation

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.