text: # Bonus Practice: Find Max
  
  # This assignment is not graded and we encourage you to experiment. Learning is
  # fun!
  
  # Given a list l and a function f, return the element of l that maximizes f.
  
  # Assume:
  #    l is not empty
  #    f returns a number
  
  # Example:
  
  l = ['Barbara', 'kingsolver', 'wrote', 'The', 'Poisonwood','Bible']
  f = len
  
  # Try it on your own!
  
  def maximizer(l , f):
      mapper = list(map(f, l))
      max_elem = max(mapper)
      max_index = mapper.index(max_elem)
      return l[max_index]
      
  print(maximizer(l, f))
  
  
  