# L-9 MCS 260 Mon 17 Sep 2007 test on string # # the program shows some intrinsic operations # on strings, classifying an input string # s = raw_input('Give a number : ') show = '\"' + s + '\"' if s.isalpha(): print show + ' is alphabetic ' elif s.isdigit(): print show + ' consist of digits only' elif s.isalnum(): print show + ' is alphanumeric ' else: print show + ' fails all tests'