input: from typing import List
  
  
  def deleteDuplicates(nums: List[int]) -> List[int]:
      """ Removes all duplicates from a given list of numbers and returns the list
      with unique elements only.
  
      >>> deleteDuplicates([1, 2, 2, 3, 4, 4, 5])
      [1, 2, 3, 4, 5]
      >>> deleteDuplicates([10, 10, 10, 10])
      [10]
      """
      final_list = []
      for num in nums:
          if num not in final_list:
              final_list.append(num)
      return final_list
output:     final_list = []
      for num in nums:
          if num not in final_list:
              final_list.append(num)
      return final_list