Posts by Dirley • 1 point
1 post
-
0
votes6
answers42162
viewsA: Removing duplicate elements in a python list
I think you can do using the function del, as follows: def remove_repetidos(l): lista = l i = 0 while i < len(lista): j = i + 1 while j < len(lista): if lista[j] == lista[i]: del(lista[j])…