When using zip do you need to use enumerate and convert the zip tuples to a list to access the previous index (i.e. index -1)
e.g.
list1 = [1, 3, 4, 8, 1