I need to iterate over a list and compare the current element and the previous element. I see two simple options.
1) Use enumerate and indexing to access items
for index, element in enumerate(some_list[1:]):
    if element > some_list[index]: 
        do_something()
2) Use zip() on successive pairs of items
for i,j in zip(some_list[:-1], some_list[1:]):
    if j > i:
        do_something()
3) itertools
I personally don't like nosklo's answer from here, with helper functions from itertools
So what is the way to go, in Python 3?
 
     
     
    