Python Program to Remove Duplicate Element From a List (Using set())

bookmark

list_1 = [1, 2, 1, 4, 6]

print(list(set(list_1)))

 

Output

[1, 2, 4, 6]