def number_suffix(number):
    'returns the suffix that adjectivises a number (st, nd, rd, th)\n\n    Paramters\n    ---------\n    number: integer\n        The number.  If number is not an integer, returns an empty string\n\n    Returns\n    -------\n    suffix: string\n        The suffix (st, nd, rd, th)\n    '
    if (not isinstance(number, (int, float))):
        return ''
    if (10 < number < 20):
        suffix = 'th'
    else:
        suffix = {1: 'st', 2: 'nd', 3: 'rd'}.get((number % 10), 'th')
    return suffix
returns the suffix that adjectivises a number (st, nd, rd, th)

Paramters
---------
number: integer
    The number.  If number is not an integer, returns an empty string

Returns
-------
suffix: string
    The suffix (st, nd, rd, th)
def number_suffix(number):
    'returns the suffix that adjectivises a number (st, nd, rd, th)\n\n    Paramters\n    ---------\n    number: integer\n        The number.  If number is not an integer, returns an empty string\n\n    Returns\n    -------\n    suffix: string\n        The suffix (st, nd, rd, th)\n    '
    if (not isinstance(number, (int, float))):
        return 
    if (10 < number < 20):
        suffix = 'th'
    else:
        suffix = {1: 'st', 2: 'nd', 3: 'rd'}.get((number % 10), 'th')
    return suffix