1
Good afternoon,
I am developing an exercise and in a moment I have to order a list and remove elements repeated, for this I perform the conversion to set and then convert to list again:
def remove(lista):
lista2 = set(lista)
lista = list(lista2)
return lista
however performing a test, I always get an unexpected result, in the conversion of [7,3,33,12,3,3,3,3,7,12,100] instead of getting [3,7,12,33,100], I get as a result [33, 3, 12, 100, 7], someone can help me find this error?