input: 
  import nltk
  
  def is_simple_type(value):
      """ Check if the given value is a simple type (number or string).
      >>> is_simple_type(42)
      True
      >>> is_simple_type("hello")
      True
      >>> is_simple_type([1, 2, 3])
      False
      """
  
output:     return isinstance(value, (int, float, str))