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
def ordinal(n): return ["th", "st", "nd", "rd"][n%10 if n%10<4 and not (10