input: Write a function to delete all duplicates in a given list of numbers and return the list without duplicates. If the list is empty, return an empty list.
  assert deleteDuplicates([1, 2, 2, 3, 4, 4, 5])==[1, 2, 3, 4, 5]
  assert deleteDuplicates([1, 1, 2, 3, 3, 4, 5, 5])==[1, 2, 3, 4, 5]
  assert deleteDuplicates([])==[]
  assert deleteDuplicates([1, 2, 3])==[1, 2, 3]
  assert deleteDuplicates([5, 5, 5, 5])==[5]
output: def deleteDuplicates(nums):
      return list(set(nums))