notebook.community
Edit and run
In [15]: def remove_duplicated(v): ''' >>> remove_duplicated([1,1,2]) [1,2], 2 ''' if len(v) < 2: return v, len(v) k = 0
def remove_duplicated(v): ''' >>> remove_duplicated([1,1,2]) [1,2], 2 ''' if len(v) < 2: return v, len(v) k = 0
Out[15]: ([1, 1], 2)
([1, 1], 2)
In [ ]: