def isNumber(value):
    '''Return True if input is an integer or decimal number.'''
    value = str(value)
    decimal = False
    for i in value:
        if i == '.' and not decimal:
            decimal = True
        else:
            try:
                int(i)
            except:
                return False
    return True
Return True if input is an integer or decimal number.
recipes/Python/580679_Convert_Spelled_out_Integers_eg_three_thoustwo/recipe-580679.py