input: 
  from typing import List
  
  
  def removeDuplicates(array: List[int]) -> List[int]:
      """ Remove duplicates from the given list and return a new list with unique elements.
      >>> removeDuplicates([1, 2, 2, 3, 4, 4, 5])
      [1, 2, 3, 4, 5]
      >>> removeDuplicates([1, 1, 1, 1])
      [1]
      """
      finalArray = []
      for element in array: 
          if element not in finalArray: 
              finalArray.append(element)
      return finalArray
  
output:     finalArray = []
      for element in array: 
          if element not in finalArray: 
              finalArray.append(element)
      return finalArray