input: def find_mode(numbers: List[float]) -> float:
      """ Find the mode in the given list of numbers. The mode is the number that 
      appears most frequently in the list. If there are multiple numbers with the same 
      highest frequency, return the first one found.
      >>> find_mode([1, 2, 3, 2, 4, 2])
      2
      >>> find_mode([1, 1, 2, 2, 3])
      1
      """
output:     frequency = {}
      for num in numbers:
          if num in frequency:
              frequency[num] += 1
          else:
              frequency[num] = 1
      
      max_freq = 0
      mode = None
      for num, freq in frequency.items():
          if freq > max_freq:
              max_freq = freq
              mode = num
      
      return mode