input: Write a function to remove all duplicates from a given list of numbers and return the unique elements in the order they appear. Ensure that the function works correctly for both empty lists and lists with repeated elements.
  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, 5, 5, 5, 5])==[5]
  assert deleteDuplicates([])==[]
  assert deleteDuplicates([1, 2, 3, 4, 5])==[1, 2, 3, 4, 5]
output: def deleteDuplicates(list): 
      final_list = [] 
      for num in list: 
          if num not in final_list: 
              final_list.append(num) 
      return final_list