What is the pythonic way to check how many different kinds of elements in python list. something like:
lst = [1, 1, 2, 2, 3, 3, 4, 4]
s = set()        
for l in lst:
    s.add(l) 
result = list(s)
What is the pythonic way to check how many different kinds of elements in python list. something like:
lst = [1, 1, 2, 2, 3, 3, 4, 4]
s = set()        
for l in lst:
    s.add(l) 
result = list(s)
