Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python remove consecutive duplicates

no_consecutive_duplicates = [x[0] for x in itertools.groupby(my_list)]
 
PREVIOUS NEXT
Tagged: #python #remove #consecutive #duplicates
ADD COMMENT
Topic
Name
6+3 =