Is there a library to convert integer to first/second/third
python
Solution
The python `inflect` package has a method for converting numerals into ordinals:
import inflect
p = inflect.engine()
for i in range(1,25,5):
print(p.ordinal(i))
displays:
1st
6th
11th
16th
21st
Problem
I have a list of integers - is there a library to convert them into plain text ranking? IE: 1,2,3 -> "first, second, third" ?