input: Write a function to find the mode of the given set of values. The mode is the element that appears most frequently in the list. If there are multiple modes, return any one of them.
  def find_mode(list_of_values):
    frequency_dict = {}
    for value in list_of_values:
      if value in frequency_dict:
        frequency_dict[value] += 1
      else:
        frequency_dict[value] = 1
    max_frequency = max(frequency_dict.values())
    for value in frequency_dict:
      if frequency_dict[value] == max_frequency:
        return value
  
  assert find_mode([1, 2, 3, 2, 4, 2])==2
  assert find_mode([3, 5, 10, 1, 2, 5, 5, 3, 3])==3
  assert find_mode([4, 3, 1, 1, 4, 4, 2, 1])==4
  assert find_mode([3, 5, 4, 4, 1, 2, 3, 5, 5, 3])==3
  assert find_mode([])==None
output: def find_mode(list_of_values):
    if not list_of_values:
      return None
    frequency_dict = {}
    for value in list_of_values:
      if value in frequency_dict:
        frequency_dict[value] += 1
      else:
        frequency_dict[value] = 1
    max_frequency = max(frequency_dict.values())
    for value in frequency_dict:
      if frequency_dict[value] == max_frequency:
        return value