#!/usr/bin/env python

def displayNumType(number):
    '''displayNumType() -- takes numeric input and displays what
    type of number it is, or that is is not a number at all'''

    print number, "is", 

    # check for integer
    if type(number) == type(0):
	print 'an integer'

    # check for long
    elif type(number) == type(0L):
	print 'a long'

    # check for float
    elif type(number) == type(0.0):
	print 'a float'

    # check for complex
    elif type(number) == type(0+0j):
	print 'a complex number'

    # check for non-number
    else:
	print 'not a number at all!!'

# execute only if module is invoked
if __name__ == '__main__':

    # test function with different input
    displayNumType(-69)
    displayNumType(9999999999999999999999L)
    displayNumType(98.6)
    displayNumType(-5.2+1.9j)
    displayNumType('xxx')
