input: 
  def get_stats_for_string(string: str) -> (str, str, float):
      """ Calculate the maximum, minimum and mean number of elements in the given string.
      Elements are the individual characters in the string.
      >>> get_stats_for_string("abcdef")
      ('f', 'a', 97.5)
      >>> get_stats_for_string("123xyz")
      ('z', '1', 115.5)
      """
      num_elements = len(string)
      max_element = max(string)
      min_element = min(string)
      mean_element = sum(ord(ch) for ch in string) / num_elements
      return (max_element, min_element, mean_element)
  
output:     num_elements = len(string)
      max_element = max(string)
      min_element = min(string)
      mean_element = sum(ord(ch) for ch in string) / num_elements
      return (max_element, min_element, mean_element)