def ordinal(value):
    'Perform ordinal conversion.'
    return (str(value) + (list((['th', 'st', 'nd', 'rd'] + (['th'] * 6)))[(int(str(value)[(- 1)]) % 10)] if ((int(str(value)[(- 2):]) % 100) not in range(11, 14)) else 'th'))
Perform ordinal conversion.
def ordinal(value):
    
    return (str(value) + (list((['th', 'st', 'nd', 'rd'] + (['th'] * 6)))[(int(str(value)[(- 1)]) % 10)] if ((int(str(value)[(- 2):]) % 100) not in range(11, 14)) else 'th'))