def is_number(N): try: float(N) return True except ValueError: return False