def unique_v2(lst):
 dd = defaultdict(int)
 unique_list = []
 for val in lst:
  dd[val] += 1
 for val in lst:
  if (dd[val] == 1):
   unique_list.append(val)
 return unique_list

def unique_v2 ( lst ) : dd = defaultdict ( int ) unique_list = [ ] for val in lst : dd [ val ] += 1 for val in lst : if ( dd [ val ] == 1 ) : unique_list . append ( val ) return unique_list
returns a list of all unique elements in the input list "lst .