DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+3 =
Submit