5 lines
185 B
Python
5 lines
185 B
Python
my_list = [10, 20, 30, 40, 20, 50, 60, 40]
|
|
print("Original List : ",my_list)
|
|
my_set = set(my_list)
|
|
my_new_list = list(my_set)
|
|
print("List of unique numbers : ",my_new_list) |