def isNumber(value):
 try:
  float(value)
 except:
  return False
 else:
  return True

def isNumber ( value ) : try : float ( value ) except : return False else : return True
returns true if the given value is a number-like object .