input: 
  def get_stats_for_string(string: str) -> tuple:
      """ Given a string, calculate the maximum, minimum and mean number of elements in the string.
      The mean number of elements is calculated as the sum of the elements divided by the total number of elements.
      
      >>> get_stats_for_string("abcdef")
      ('f', 'a', 103.5)
      """
      num_elements = len(string)
      max_element = max(string)
      min_element = min(string)
      mean_element = sum(map(ord, 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(map(ord, string)) / num_elements
      return (max_element, min_element, mean_element)