Usually you use enumerateor range()to traverse items. Here is an alternative
>>> li = [2,31,321,41,3423,4,234,24,32,42,3,24,31,123]
>>> zip(li[1:],li)
[(31, 2), (321, 31), (41, 321), (3423, 41), (4, 3423), (234, 4), (24, 234), (32, 24), (42, 32), (3, 42), (24, 3), (31, 24), (123, 31)]
the second element of each tuple is the previous element of the list.