def removeDuplicates(arr): 
    new_arr = [] 
    for i in arr:
        if i not in new_arr: 
            new_arr.append(i) 
  
    return new_arr 
  
removeDuplicates([1, 2, 2, 3, 4, 4, 5]) # Output : [1, 2, 3, 4, 5]
arr = [1, 2, 2, 3, 4, 4, 5]
Crea un algoritmo che rimuove i duplicati da un determinato array.