ordinal

Get ordinals from numbers (42 -> 42nd).


License
MIT
Install
pip install ordinal==1.0.3

Documentation

ordinal

Get ordinals from numbers

from ordinal import ordinal
num = ordinal(42)
print(num) # 42nd

Testing

Clone the app and run the following:

pip install -e .
pytest