input: Write a function to delete all duplicates in a given list of numbers. If the given list is empty, return an empty list.
  def deleteDuplicates(list): 
      final_list = [] 
      for num in list: 
          if num not in final_list: 
              final_list.append(num) 
      return final_list
  assert deleteDuplicates([1, 2, 3, 1, 4, 2]) == [1, 2, 3, 4]
  assert deleteDuplicates([5, 5, 5, 5]) == [5]
  assert deleteDuplicates([]) == []
  assert deleteDuplicates([1, 2, 3, 4]) == [1, 2, 3, 4]
  assert deleteDuplicates([9, 2, 9, 2, 1]) == [9, 2, 1]
output: def deleteDuplicates(list): 
      final_list = [] 
      for num in list: 
          if num not in final_list: 
              final_list.append(num) 
      return final_list