input: Write a function to remove all duplicates from a given list of numbers. The function should return a list with all unique elements in the order they first appeared.
  
  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, 2, 4, 3, 5]) == [1, 2, 3, 4, 5]
  assert deleteDuplicates([5, 6, 7, 5, 7, 8]) == [5, 6, 7, 8]
  assert deleteDuplicates([1, 1, 1, 1]) == [1]
  assert deleteDuplicates([]) == []
output: def deleteDuplicates(list):
      final_list = []
      for num in list:
          if num not in final_list:
              final_list.append(num)
      return final_list