input: from typing import List
  
  
  def removeDuplicates(array: List[int]) -> List[int]:
      """ Removes duplicate values from a given list of integers.
      >>> removeDuplicates([1, 2, 2, 3, 4, 4, 5])
      [1, 2, 3, 4, 5]
      >>> removeDuplicates([10, 10, 20, 30, 40, 40])
      [10, 20, 30, 40]
      """
output:     seen = set()
      result = []
      for num in array:
          if num not in seen:
              seen.add(num)
              result.append(num)
      return result