some_list = [1, 1, 2, 2, 3, 3, 4, 4, 5, 5] #In Set konvertieren und dann zurück zur Liste uniq_list = list(set(some_list)) print(uniq_list) # => [1, 2, 3, 4, 5]
Recommended Posts