def is_number(s): try: float(s) return True except ValueError: pass pass try: import unicodedata unicodedata.numeric(s) except(TypeError,ValueError): pass pass return Falsewhile False: ten=input('Enter numbers ') is_number(ten) print ('The input is not a number')print('The input is a number')