>>> from remove_repeated import remove_repeated_consecutives >>> remove_repeated_consecutives([3, 1, 1, 2, 2, 2, 1, 4, 5, 5, 7, 5, 5, 2, 2]) [3, 1, 2, 1, 4, 5, 7, 5, 2] >>> remove_repeated_consecutives([5, 1, 4, 2, 3]) [5, 1, 4, 2, 3] >>> remove_repeated_consecutives([]) [] >>> remove_repeated_consecutives([9, 9, 4, 6, 4, 4, 1, 1, 2]) [9, 4, 6, 4, 1, 2] >>> remove_repeated_consecutives([1, 2, 3, 4, 5, 5, 5]) [1, 2, 3, 4, 5] >>> remove_repeated_consecutives([1]*10) [1]