code: def isnumber(obj):
      
      return (
          (obj is not None)
          and (not isinstance(obj, bool))
          and isinstance(obj, (int, float, complex))
      )
docs: Test if the argument is a number (complex, float or integer).
  
      :param obj: Object
      :type  obj: any
  
      :rtype: boolean