input: Write a function to delete all duplicates in a given list of numbers. Return the list without duplicates.
  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, 2, 3, 4, 4, 5])==[1, 2, 3, 4, 5]
  assert deleteDuplicates([5, 3, 5, 3, 2, 1])==[5, 3, 2, 1]
  assert deleteDuplicates([])==[]
  assert deleteDuplicates([1, 1, 1, 1])==[1]
  assert deleteDuplicates([4, 3, 2, 1])==[4, 3, 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