I\'m wondering if there is a quick and easy way to output ordinals given a number in python.
For example, given the number 1, I\'d like to output
1
These days I'd use Arrow http://arrow.readthedocs.io/en/latest/ (which definately wasn't around in '09)
>>> import arrow >>> from datetime import datetime >>> arrow.get(datetime.utcnow()).format('Do') '27th'