some_list = [1, 1, 2, 2, 3, 3, 4, 4, 5, 5] #Convertir en ensemble, puis revenir à la liste uniq_list = list(set(some_list)) print(uniq_list) # => [1, 2, 3, 4, 5]
Recommended Posts