input: 
  def removeDuplicates(input): 
      final_list = [] 
      for num in input: 
          if num not in final_list: 
              final_list.append(num) 
      return final_list 
  
  # Test cases:
  print(removeDuplicates([1, 2, 2, 3, 3, 4]))  # Output: [1, 2, 3, 4]
  
output:     return final_list