code: def is_digit(obj):
      '''
      Check if an object is Number
      '''
      return isinstance(obj, (numbers.Integral, numbers.Complex, numbers.Real)f is_digit(obj):
      '''
      Check if an object is Number
      '''
      return isinstance(obj, (numbers.Integral, numbers.Complex, numbers.Real))
docs: Check if an object is Number