my_list = [1,2,3,4,2,3]
so my desired list should be like
new_list = [1,4]
duplicate values should be removed along with the original ones
Attempt -
output = []
for x in my_list:
if x not in output:
output.append(x)
print(output)