input: Write a function to delete all duplicates in a given list of numbers. The function should return a list with all unique elements in the same order they appeared in the original list. Use the function name deleteDuplicates.
  assert deleteDuplicates([1, 2, 2, 3, 4, 4, 5]) == [1, 2, 3, 4, 5]
  assert deleteDuplicates([5, 6, 7, 7, 8, 9, 9]) == [5, 6, 7, 8, 9]
  assert deleteDuplicates([]) == []
  assert deleteDuplicates([10, 10, 10, 10]) == [10]
output: def deleteDuplicates(nums):
      seen = set()
      result = []
      for num in nums:
          if num not in seen:
              seen.add(num)
              result.append(num)
      return result