I am trying to iterate two successive elements of the list of lists.
mentionedlist=[[1,2,3,4][1,2,3,4][2,3,4,5][3,4,5,5][1,2,3,4][1,2,3,4][]]
Now I want to compare weather first element of a list in mentionedlist and first element of next list in mentionedlist is same, I also want to do these comparision throughout the list.
[1,2,3,4][1,2,3,4] is example of answer that i am expecting.