def is_int(s):
 if (not s):
  return True
 try:
  int(s)
  return True
 except ValueError:
  return False

def is_int ( s ) : if ( not s ) : return True try : int ( s ) return True except ValueError : return False
return s is blank or represents an int .