# Helpful functions for Assignment 3

def isFloat(s):
   try: float(s)
   except (ValueError, TypeError), e: return False
   return True

def isInt(s):
   try: int(s)
   except (ValueError, TypeError), e: return False
   return True
