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
Get ordinals from numbers (42 -> 42nd).
pip install ordinal==1.0.1
Get ordinals from numbers
from ordinal import ordinal
num = ordinal(42)
print(num) # 42nd
Clone the app and run the following:
pip install -e .
pytest