input: 
  def find_pair(lst: List[int], target: int) -> List[int]:
      """ Finds a pair of numbers from the given list that add up to the given target.
      >>> find_pair([1, 2, 3, 4, 4, 5, 6], 8)
      [2, 6]
      >>> find_pair([2, 7, 11, 15], 9)
      [2, 7]
      """
      for i in range(len(lst)):
          if (target - lst[i]) in lst[i+1:]:
              return [lst[i], target-lst[i]]
  
output:     for i in range(len(lst)):
          if (target - lst[i]) in lst[i+1:]:
              return [lst[i], target-lst[i]]