I want to compare the first element from a sublist (Index [0]) to the same element from the sublist right before it. if it\'s not equal, I want to append a new element to th